tonal icon indicating copy to clipboard operation
tonal copied to clipboard

Natural notes (sign)

Open francowanseele opened this issue 1 year ago • 2 comments

Hello, I would need to specify, for some cases, notes with the natural sign. Is there any way to specify it?

I was hoping to have something like Cn4 so in this way when I get the information for this note Note.get('Cn4'), some attribute could indicate a natural sign.

Any advice or ideas would be welcome. Thank you!

francowanseele avatar Oct 03 '23 11:10 francowanseele

There's no support for that (and not sure if it will be). The only "hack" I can think about is to replace (in the string) the n for an arbitrary number of sharps (for example, convert "Cn" to "C####") and when you find 4 sharps, you know it's natural.

Anyway, I'm wondering about it's utility. Also it is the first time I see it. Can you point to some reference documentation? I'm curious, why you need it?

danigb avatar Oct 03 '23 19:10 danigb

Thanks for your answer!

I am working on a project that uses this tool with VexFlow, so I have to contemplate the scenario that there is a key signature in the music sheet (which specify accidental notes by default) but I can have one of these notes without accidental. In this way I have to draw a natural sign.

I thought it might be easer to handle if I have a way to write the natural sign in the note, but with your answer my idea is to specify this sign taking as input the notes and the key signature.

Just to lyk, I am working on a mobile application "ADA Entrenamiento Auditivo" and I plan to make the repository publish later this year, so if you are interested I can shared with you in the future.

francowanseele avatar Oct 03 '23 21:10 francowanseele