humdrum-tools / verovio-humdrum-viewer

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

Coda and Segno Symbols #92

Open sannedubois opened 6 years ago

sannedubois commented 6 years ago

Is it possible to have the Coda and Segno symbols implemented?

I see finale outputs them in music xml as

        <direction-type>
          <segno default-y="23"/>
        </direction-type>
      </direction>

or

        <direction-type>
          <coda default-y="25"/>
        </direction-type>
      </direction>
craigsapp commented 6 years ago

In progress: https://github.com/music-encoding/music-encoding/issues/520

jacekiwaszko1 commented 6 years ago

Is there any way to encode Segno and Coda in Humdrum? I couldn't find any information about that. My first thought was to use *segno and *coda in the same manner as *ped and Xped. Or maybe it is to soon to think about that since MEI does not have fixed way to deal with it?

For now I was using layout comments to put Unicode character into score (!!LO:TX:t=𝄋 and !!LO:TX:t=𝄌), but that's obviously not the best solution:

segno-coda

craigsapp commented 6 years ago

Adding *segno and *coda might be a good idea.

In the meantime, I added plain-text abbreviations for the unicode symbols:

**kern
=1
!LO:TX:a:t=[segno]
1c
=2
!LO:TX:a:t=[coda]
1c
=3
!LO:TX:a:t=[ped]
1c
=4
!LO:TX:a:t=[quarter]
1c
=5
!LO:TX:a:t=[eighth]
1c
==
*-

This will make it easier to enter the musical symbols. The pdf output (created with alt-T or alt-t) will not have the font for such symbols (hopefully this will be fixed in the future). My browser (Chrome on MacOS) is not showing the segno, coda or ped signs:

screen shot 2018-07-18 at 10 49 26 am
craigsapp commented 3 years ago

Segno and coda can now be displayed across all browsers and in PDFs using text:

Screen Shot 2020-10-18 at 11 34 15 AM
**kern
!LO:TX:a:t=[whole]=125 M.M.
*M4/4
=1
1c
=2
!LO:TX:a:t=[segno]
1d
=2
!LO:TX:a:t=[coda]
1e
!LO:TX:a:t=[coda]:color=hotpink
!LO:TX:b:t=centered on barline:color=hotpink
=3
!LO:TX:a:t=[quarter|small] &nbsp; [sixteenth|smallest]
1f
=4
!LO:TX:a:t=[eighth|largest]
1g
==
*-

Adding *segno and *coda would be useful to add, but there is a question of where/how to place the signs, and also how to allow control of the size and color. Probably placing the *segno/*coda before the barline will be used to center on the barline, and placing after the barline will placed it on the first note of the measure.

craigsapp commented 3 years ago

Also segno/coda marks from MusicXML still need to be converted with musicxml2hum. Probably implement *segno and *coda first.