humdrum-tools / verovio-humdrum-viewer

Verovio Humdrum Viewer
http://verovio.humdrum.org
39 stars 9 forks source link

tremolo dots #631

Open craigsapp opened 3 years ago

craigsapp commented 3 years ago

Emulate tremolo dots on tremolos, such as:

https://verovio.humdrum.org/?file=https%3A%2F%2Fdata.nifc.humdrum.org%2F18xx%3A3356.krn

Screen Shot 2021-11-14 at 4 23 46 PM

Emulate as encoded in this example as text:

Screen Shot 2021-11-14 at 4 24 43 PM

But encode as some parameter for tremolos, such as:

!LO:TREM:dots=4

Or better may be to calculate the number of dots automatically:

!LO:TREM:dots

which would add four dots for a half note tremolo of four eighth notes (and the dots=4 could be used to override of the automatically calculated number is different than the visual count for some reason).

A problem is that the stem/head placements of the dots would not be automaticaly controllable (it would depend on the pitches/clef/stem direction of the tremolo notes). Perhaps have dotsa and dotsb for placing the dots above/below the tremolo notes (which will work well if not transposing).

craigsapp commented 2 years ago

See: https://github.com/music-encoding/music-encoding/discussions/954