Instruments.XML "variant" documentation?
I've been creating a custom XML file and I've been trying to find some documentation on how to use the "Variant" function with non-pitched percussion, can anyone share some knowledge on variants or point me in the right direction?
What I'm looking for is a way to add an articulation to a note and have its midi-output changed.
e.g. the standard note sends a "59" but when I but a staccato over it, it sends a "57".
I think this is accomplished by using variants, but I can't quite figure out how.
Comments
That is indeed exactly what variants are for. They were introduced to allow better articulation playback by the MDL extension in #272276: Add ability to have a different MIDI pitch for drum instrument based on articulation or tremolo
See this comment by lasconic ( https://musescore.org/en/node/272276#comment-835433 ) specifically for a quick doc on how to write those elements.
In reply to That is indeed exactly what… by jeetee
Thank you so much! I'm updating the Musescore XML file for Virtual Drumline to include this functionality.
Follow up questions:
-Is there any way of implementing this but in reverse, (or something in the works)
E.g. I place a note from the drumset window and it automatically has the articulation on it?
-Is there a way to have multiple articulations further change the note's assignment?
e.g. no articulation = 59. with mordent = 60. with mordent AND staccato = 61.
In reply to Thank you so much! I'm… by Cadence Point Music
I place a note from the drumset window and it automatically has the articulation on it?
Not that I'm aware, no
Is there a way to have multiple articulations further change the note's assignment?
I'll ping lasconic on the developers chat, but I think currently not.
In reply to Thank you so much! I'm… by Cadence Point Music
-Is there any way of implementing this but in reverse, (or something in the works)
E.g. I place a note from the drumset window and it automatically has the articulation on it?
No. Nothing for the moment
-Is there a way to have multiple articulations further change the note's assignment?
e.g. no articulation = 59. with mordent = 60. with mordent AND staccato = 61.
No, it only works with a single articulation and a single tremolo for now.