Plugin help -- iterate over measures in a score

• Apr 28, 2019 - 18:30

Hi,

I'm fairly comfortable with C++, but I'm having trouble finding reference material for musescore's plugins. I've read through the sample plugins and some of musescore's source, but I'm still struggling. I hope someone here can offer some pointers.

I'd like to design a plugin that does the following:
1) Given a score, walk each measure and determine if it is unique (I realize this will require many iterations). If it is unique, store it's measure number (or whatever property is used to uniquely identify the measure) in a list.
2) Once the entire score has been analyzed, create a new score, and copy the measures in the "unique measure list" into the new score.

I find the output of something like this to be tremendously helpful in developing practice material. I do it manually today, but it's slow and error-prone. A plugin would be wildly helpful.

Any help is appreciated!

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