Select Chord Levels (top/bottom/cardinal level 2-5)
I had use for attempting the PruneStack plugin (https://github.com/birdwellmusic/PruneStack) today.
It seems that changing voices wasn't working well. For example, selecting only the first level (lowest notes of chords in a range) and effectively determining to want these to be in voice-2, the provided functionality didn't actually do this. The plugin was only selecting the end of the selection or something funny, and the code itself had similar comments mentioning such due to some limitations. Pruning worked great though.
I went ahead and altered the QML so that the levels can be switched to a selected voice. After getting that to work, I realized that sometimes maybe I or another might want to not just switch the voice of whatever level of chords in a range, but rather perform some other task like octave shift, visibility, change notehead style, etc. Who knows? So I also put in another button that merely selects the results from a given range and checked level(s), resulting in list-selection (of noteheads) without any other action taken. Further commands can be issued within MS from there. Hopefully it may find some use besides meself.
BTW, I've seen plenty of posts in the past asking to be able to select all bottom notes or top notes of chords. I'm not sure if this will be the exact type of thing since "top" here is sort of relativistic depending on the amount of notes in each chord in the range, but this potentially could help someone. Bottom is always level 1.
If anyone tests it and finds something funny going on, it would be appreciated if some responses were made here. Lucky ducky Dorico 4 users have this stuff already built-in...
P.S. This kind of plugin is benefited from having a shortcut assigned to it when doing some arrangements or whatever.
P.P.S. Download @ https://musescore.org/en/project/chord-level-selector