Add a more flexible way to choose noteheads in drumset for percussion instrument
Currently in MuseScore <2.2, each drum in a drumset can be associated with a "notehead" in the UI. In fact, the UI is misleading and internally a drum is associated with what we call a "notehead group". A notehead group contains the notehead for whole, half, quarter and doublewhole note. Thanks to "notehead groups", a user can select a quarter note in the score, change the notehead to a cross and then change the note to half note and get the right notehead. We have a number of "notehead groups" and they group 4 noteheads together. This grouping is hardcoded and cannot be changed by the user.
Over the years, and recently we had requests to add more noteheads in MuseScore, especially for drums. But every time we add a "notehead", we actually add a full notehead group and 4 different notehead symbols are linked together forever.
For percussion instrument, I believe it's not the right approach. So I propose to implement a new "custom" head group for percussion only for now. If this group is choosen, the user can define 4 noteheads to be added to the group for each of the duration. The drumset dialog could look a bit like :
In drumset definition (instruments.xml, drm files, or in mscx), we could add something like the following and omit
headCustom when custom is not selected.
<head>custom</head> <headCustom> <whole>noteheadCircledWhole</whole> <half>noteheadCircledHalf</half> <quarter>noteheadCircledBlack/quarter> <doublewhole>another smufl id</doublewhole> </headCustom>