Generating a list of pitch and associated note duration in milliseconds

• May 6, 2020 - 22:47

Hello all,

I have been using Musescore recently for extracting pitch and duration of notes for scores assuming a single part, a single voice and just one note for chords. This has been fairly easy to do based on the Walk plugin. However, computing the duration in milliseconds of a given note becomes more tricky when fermatas or triplet are involved, especially for scores where the tempo and time signature change from one measure to the other. I can probably figure out the math itself in the general case but getting the information that notes belong to a triplet or the time expansion coefficient for a fermata through the Musescore QML API is something I have not properly managed to do.

I have been through the documentation, have red quite a few plugin codes and been through many forum topics but I could not find a consistent way to address this problem. Any help on this would be really appreciated.

Thanks in advance
Vincent

PS: I use this extraction to automatically generate movie clips composed of a succession of static images where each static image is a note. For those interested, I can point to a movie clip generated using this technique for a score that was simple enough for my plugin to handle. I would also be happy to share this program.

Do you still have an unanswered question? Please log in first to post your question.