Skip to main content
Topic: Reading staff symbols (Read 1868 times) previous topic - next topic

Reading staff symbols

I am working on a function looking for accidentals as text in StaffCueSymbols. Sometimes it is only one character, sometimes it is three high ASCII characters. When I used stdErr for debugging, I get a character looking like a lowercase m with something dragging to the right (see picture).  What is that character?  Is it possible to read and interpret the text for a special font?

In the following code saveText is the content of the quoted character(s) without spaces.
Code: [Select · Download]
	switch(saveText) {
case "e":
case "?":
case "∩üÑ":  //Natural
    saveAcc = "n";
break;
case "f":
case "∩üª":  //Flat
    saveAcc = "b";
break;
case "d":
case "∩üñ":  //Sharp
    saveAcc = "#";
break;
case "g":             // Double sharp
case "":
    saveAcc = "x";
break;
case "h":             // Double Flat
case "":
    saveAcc = "v";
break;
default:
    errMsg+= ti + "->" + saveText + "<- " + lines[i] + "\n";
    errMsg += "Couldn't find accidental in " + lines[ti], rc = 1; return lines; // change += to = when live
}
Since 1998

 

Re: Reading staff symbols

Reply #1
UTF8