humdrum-tools / verovio-humdrum-viewer

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

Cautionary accidentals in brackets/parentheses #857

Closed jacekiwaszko1 closed 5 months ago

jacekiwaszko1 commented 1 year ago

Is there a way to encode cautionary accidental in brackets or parentheses?

image

I know about editorial accidentals, that can look exactly as in the example above (!!!RDF**kern: i = editorial accidental, paren), but I wouldn't like to use it since that's not an editorial intervention.

If it hasn't been implemented in Humdrum yet, maybe !LO:ACC:paren / !LO:ACC:brack could be used in this kind of cases?

Humdrum encoding proposal:

!!!!SEGMENT: pl-wtm--1223-fp-3858--001-002_szymanowski-karol--fantaisie-op-14-ii
!!!id: 19xx:56
!!!COM: Szymanowski, Karol
!!!OTL: Fantaisie op. 14 - II.
!!!URL-scan: https://polish.musicsources.pl/pl/lokalizacje/galeria/druki-muzyczne/18510/6
!!!key: a-
**kern
*clefF4
*k[b-e-a-d-]
*M4/4
*met(c)
=4
*^
(>12BBBn/L  4ryy
12BBn/  .
12F/J   .
12c#X/L ([4A-\
12dn/   .
12f#X/J .
8fn/L   8A-\L]
8en/J   8G\J
8.e-X/L 8.G-X\L
!LO:ACC:paren   !
16dn/Jk)    16F\Jk)
*v  *v
=
*-
!!!system-decoration: {(s1,s2)}
!!!RDF**kern: > = above
!!!RDF**kern: < = below

Target rendering:

image

Click here to see target MEI encoding ```xml Fantaisie op. 14 - II. Verovio

Transcoded from Humdrum

Fantaisie op. 14 - II. Szymanowski, Karol ureference SEGMENT pl-wtm--1223-fp-3858--001-002_szymanowski-karol--fantaisie-op-14-ii reference id 19xx:56 reference COM Szymanowski, Karol reference OTL Fantaisie op. 14 - II. reference URL-scan https://polish.musicsources.pl/pl/lokalizacje/galeria/druki-muzyczne/18510/6 reference key a- reference system-decoration {(s1,s2)} reference RDF**kern > = above reference RDF**kern < = below
Fantaisie op. 14 - II.     Karol Szymanowski
```
craigsapp commented 5 months ago

If it hasn't been implemented in Humdrum yet, maybe !LO:ACC:paren / !LO:ACC:brack could be used in this kind of cases?

Yes, I think this is good.

craigsapp commented 5 months ago

Implemented with commit https://github.com/rism-digital/verovio/commit/3d8937090e3b0a5d238a56651acb7489a935cb8c

Now available in VHV:

Screenshot 2024-04-11 at 9 46 53 AM

Highlighting cautionary accidentals (with alt-shift-X):

Screenshot 2024-04-11 at 9 48 54 AM