# Musical Notation Symbols?

**URL:** <https://discourse.processing.org/t/musical-notation-symbols/43483>\
**Category:** Project Guidance\
**Created:** [December 15, 2023, 11:15pm UTC](https://discourse.processing.org/t/musical-notation-symbols/43483 "2023-12-15T23:15:08Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [December 20, 2023, 11:27am UTC](https://discourse.processing.org/t/musical-notation-symbols/43483/9 "2023-12-20T11:27:04Z")

</div>

Hello @bachrock,

Find a suitable font (web search found the ones below) with music notes.

I did a bit of searching for insight on how to display Unicode characters with Processing and Java to achieve this.

This works with Processing 4.3 Java:

```auto
PFont myFont;
import java.lang.Character.*;

void setup() 
  {
  size(1100, 1000);
  background(244);
  
  // Uncomment the following two lines to see the available fonts 
  //String[] fontList = PFont.list();
  //printArray(fontList);
  
  //myFont = createFont("Symbola.ttf", 64, true);
  myFont = createFont("Musisync-KVLZ.ttf", 64, true);
  textFont(myFont);
  textAlign(CENTER, BOTTOM);
  
  fill(0);
  //int fontStart = 0x1D100; // Symbola font
  int fontStart = 0x0000; // Musisync-KVLZ font
  for(int i=0; i<200; i++)
    {
    int u = fontStart+i;
    char [] uc = Character.toChars(u);
    String s = new String (uc);
    //text(s, i%20*50+70, (i/20)*80+100); // rows and columns
    text(s, random(10, width-10), random(10, height-10)); //random
    } 
  }

```

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/2/d/2d33293314237ea82ce62bc4e3403c0d33cee104.png)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/0/d/0dd3c03fedc3dda92201af49087a9acd6862e0f9.png)

References:

- [https://www.fontspace.com/category/notation](https://www.fontspace.com/category/notation)
- [https://www.fontspace.com/musisync-font-f3723](https://www.fontspace.com/musisync-font-f3723)
- [https://unicode.org/charts/PDF/U1D100.pdf](https://unicode.org/charts/PDF/U1D100.pdf)

Above code also worked with _Symbola_ font for other characters:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/6/d/6d56d54096a7eba2263ec2f651082cc6da49ea2e.png)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/7/c/7c8b5d682df5e5ca2f78dc14e9288b56c3cc023c.png)

`:)`

---

_[View the full topic](https://discourse.processing.org/t/musical-notation-symbols/43483)._
