Plugin Roadmap? Plus a suggestion for a simple plugin enhancement
I just recently discovered MuseScore and like others, I'd like to thank everyone for the hard work that has obviously gone into this program.
Does anyone currently involved in development have a road map or even a wish list for the plugin API? I'm not talking about enhancements that users want, I'm talking about enhancements that the people actually developing the plugin API are interested in.
I decided to try writing a plugin to deal with voices. One feature I wanted to include was the ability to mute voices. That's not too hard, I can mute a voice all right (by setting the velocity to 0)—but I can't figure out any reasonable and safe way to restore the original note velocities. Any suggestions that would work with the current plugin API would be welcome, but here's my suggestion for the an API enhancement:
For each MuseScore plugin object (Score, Note, Chord, Rest, etc.), add a "data" property. The idea is that data is an empty object to which plugin writers could add properties. For example:
note.data.savedVelocity = note.velocity;
note.velocity = 0;
would allow for a voice to be muted and restored. If this interface is difficult to implement, then
would work. If the variant data types assigned to "data" are a problem, you could even require a string and people could use JSON to convert objects to strings and back.
Thanks for listening!