8va/8vb in qml
Hello,
I'd like to detect if the real pitch is affected by 8va or 8vb while calculating some stuff in a plugin.
Unfortunately, I don't find how to do that.
so when I call for note.pitch, it doesn't take into account if a modifier 8va or 8vb is there or not.
Help anyone?
Comments
I think is is not just qml that doesn't show the real pitches if there are ottavas, the status bar doesn't either IIRC
In reply to I think is is not just qml… by Jojo-Schmitz
Good point, thanks.
But is there a way to detect the 8va sign in order to modify the pitch "myself" with something like
if (8va)
note.pitch = note.pitch+12;
that is the "if (8va)" thing that I don't find.
In reply to Good point, thanks. But is… by Numerosix
Probably not. I can say that internally, MuseScore provide both "pitch" and "epitch" and I think another variant or two, one probably has what you want But I'm not sure which of these are exposed to plugins.
Does note.ppitch do what you need?
In reply to Does note.ppitch do what you… by PaulSC
Hi,
Sorry for answering so late, and thank you very much because ppitch did the trick :) !