Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Natural notes (sign) #390

Open
francowanseele opened this issue Oct 3, 2023 · 2 comments
Open

Natural notes (sign) #390

francowanseele opened this issue Oct 3, 2023 · 2 comments

Comments

@francowanseele
Copy link

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!

@danigb
Copy link
Collaborator

danigb commented Oct 3, 2023

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?

@francowanseele
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants