mx
mx copied to clipboard
Expand repeats ?
Is there a convenience function or concept of expanding repeats ?
Like how a musician will interpret the score while playing the piece from start to end ?
I am hoping to extract all the relevant pitches (from the pitches I hope to calculate their position on the piano keyboard) as they are played to animate the fingers in both the left and right hand.
Unfortunately no. In fact, it looks like repeats may be oversimplified in the "api" namespace. If that is the case, then you would need to go to the lower-level "private" representation of the XML to get additional information about them.
https://github.com/webern/mx/blob/9d54883efdb3242d8bdb66e2d8543cdea8ec093c/Sourcecode/include/mx/api/BarlineData.h#L46