Open WolfgangDrescher opened 1 year ago
satb2gs
could be adjusted to convert 4-part single-voice parts to this format.
Currently this can be done semi-automatically by first running this filter:
extract -k 1,4,3,2
This extracts the first, then the fourth, third and finally second staves from the original score. Subspines are arrange from high-to-low unlike staves which are low-to-high, so the extract command is flipping the three voices to get ready to merge into a single staff.
Then I hand-edited the output of the extract filter (which can be automated in the satb2gs
filter):
Lines 10 and 11 expand the top staff to three voices.
Line 23 has *join
interpretations which will merge the stems of notes in different layers if they have the same durations. This is only implemented currently for 2 voices/layers, so I would also need to expand to 3 so that the first chord in the top staff all share a stem for the quarter-note duration (line 24).
There would need to be some clean up for things such as the fermatas in measure 4 (just one fermata above the top staff should be sufficient if all rhythms are the same for the fermata notes).
How to deal with figured-bass spines and scale degrees would have to be considered (probably OK if they are attached to the bass part).
Is it currently possible to display multiple spines in a single staff with multiple layers? I have already seen this discussion from
**HUG
: https://groups.google.com/g/starstarhug/c/PcFt9hha4lQ/m/BKs2DxN_BgAJ. However, thesatb2gs
filter does not work in my case, because I need three voices in the right hand of a piano system and only one in the left hand.Ideally it should be possible to transform the score directly in the browser with verovio. Any hint on where to start for an implementation for this?