craigsapp / website-polish-scores

Front-end for digital transcriptions of the Polish Music Heritage in Open Access project
https://polishscores.org
3 stars 1 forks source link

Barlines through text #279

Closed craigsapp closed 7 months ago

craigsapp commented 7 months ago

It is preferable to not have connecting barlines through lyrics.

Screenshot 2024-02-11 at 16 29 48

https://polishscores.org/?id=17xx:1975&con=CsMsOc

Create a configuration option called "Disconnect staff barlines" (or something better) that will not connect barlines between staves.

Ideally the digital scores would not have the connecting barlines in such cases, but a configuration option should good enough for now. This option could be enhanced in the future to only apply to staves with text, although that would be more complicated to implement (probablyl best in humlib). Simple method to remove all connecting barlines on the system can be done with the shed filter:

shed -e "s/(^system-decoration.*)[()]/$1/gR"

Which means to remove all parentheses from reference records starting with "system-decoration" (Parentheses indicate bar groupings).

https://polishscores.org/?id=17xx:1975&con=CsMsOcFi{shed%20-e%20%22s/(system-decoration.*)[()]/$1/gR%22}

Screenshot 2024-02-11 at 16 35 18
craigsapp commented 7 months ago

Implemented in commit https://github.com/craigsapp/website-polish-scores/issues/279

Example:

https://polishscores.org/?id=17xx:1975&con=BbCsMsOc

Screenshot 2024-02-11 at 16 45 54

The configuration code for the con parameter in the URL is Bb for "Break barlines".