rism-digital / verovio

🎵 Music notation engraving library for MEI with MusicXML and Humdrum support and various toolkits (JavaScript, Python)
https://www.verovio.org
GNU Lesser General Public License v3.0
660 stars 181 forks source link

Add --tempo-bottom-min-margin #3653

Closed craigsapp closed 4 months ago

craigsapp commented 4 months ago

It would be useful to add --tempo-bottom-min-margin to control the minimum distance of <tempo> text (at least I cannot find it in the long list of options :-)

Example current rendering:

Screenshot 2024-04-21 at 8 53 51 PM
Click to view MEI data for above example. ```xml Sonata in D major, op. @{OPS}, no. @{ONM} (@{SCT}), Adagio Sonata in D major, op. @{OPS}, no. @{ONM} (@{SCT}), Adagio Vivaldi, Antonio Lucio encoder Fran Bennion 2024/04/21 2004/10/09 (C) 2009, 2024 Center for Computer Assisted Research in the Humanities. Converted from MuseData with musedata2hum on Sun Apr 21 19:20:58 2024 RV 62 / Estienne Roger (No. 363), Amsterdam [facs.] RV 62 / Estienne Roger (No. 363), Amsterdam [facs.] Verovio

Transcoded from Humdrum

12 sonatas for two violins and basso continuo Antonio Vivaldi: Thematisch-systematisches Verzeichnis seiner Werke (Ryom-Verzeichnis) RV 62 1 <titlePart type="main" analog="humdrum:OTL">Sonata in D major, op. @{OPS}, no. @{ONM} (@{SCT})</titlePart> <titlePart type="movementName" analog="humdrum:OMD">Adagio</titlePart> <titlePart type="number" analog="humdrum:ONM">6</titlePart> <titlePart type="movementNumber" analog="humdrum:OMV">3. [Adagio]</titlePart> <titlePart type="opusNumber" analog="humdrum:OPS">1</titlePart> Vivaldi, Antonio Lucio Vivaldi, Antonio Lucio 1678-03-04 1741-08-28 reference COM Vivaldi, Antonio Lucio reference CDT 1678/03/04-1741/08/28 reference OPR 12 sonatas for two violins and basso continuo reference OTL Sonata in D major, op. @{OPS}, no. @{ONM} (@{SCT}) reference OPS 1 reference ONM 6 reference OMV 3. [Adagio] reference SCT RV 62 reference SCA Antonio Vivaldi: Thematisch-systematisches Verzeichnis seiner Werke (Ryom-Verzeichnis) reference OMD Adagio reference key f# reference SMS RV 62 / Estienne Roger (No. 363), Amsterdam [facs.] reference ENC Fran Bennion reference END 2004/10/09 reference ONB Converted from MuseData with musedata2hum on Sun Apr 21 19:20:58 2024 reference YEM (C) 2004, 2004 Center for Computer Assisted Research in the Humanities. reference system-decoration [(s1,s2,s3)] reference URL-pdf https://pdf.musedata.org/vivaldi-op01-no06.pdf#page=3 MuseData edition reference URL-pdf https://s9.imslp.org/files/imglnks/usimg/1/18/IMSLP280399-PMLP10351-Vivaldi_Sonatas_Op_1_-_Violino_Primo.pdf#page=10 Violino primo part, Amsterdam: Estienne Roger, n.d.(ca.1723). Plate 363. reference URL-pdf https://s9.imslp.org/files/imglnks/usimg/d/d5/IMSLP280400-PMLP10351-Vivaldi_Sonatas_Op_1_-_Violino_Secondo.pdf#page=9 Violino secondo part, Amsterdam: Estienne Roger, n.d.(ca.1723). Plate 363. reference URL-pdf https://s9.imslp.org/files/imglnks/usimg/8/89/IMSLP280401-PMLP10351-Vivaldi_Sonatas_Op_1_-_Organo_e_Violoncello.pdf#page=8 Organo e Violoncello parts, Amsterdam: Estienne Roger, n.d.(ca.1723). Plate 363. reference URL-youtube https://www.youtube.com/watch?v=P5HHPe_W6Uo&t=1847s L'Arte dell'Arco reference title @{OTL}, mov. @{OMV} reference EEV 2024/04/21 reference source-file https://bitbucket.org/musedata/vivaldi/src/master/roger/op1/rv062_06/stage2/03/01 reference source-file https://bitbucket.org/musedata/vivaldi/src/master/roger/op1/rv062_06/stage2/03/02 reference source-file https://bitbucket.org/musedata/vivaldi/src/master/roger/op1/rv062_06/stage2/03/03 reference source-file https://bitbucket.org/musedata/vivaldi/src/master/roger/op1/rv062_06/stage2/03/04
Sonata in D major, op. @{OPS}, no. @{ONM} (@{SCT})     Antonio Lucio Vivaldi 1678–1741
Adagio
```

Target rendering, where Adagio is placed higher (around 6 diatonic steps above the staff):

Screenshot 2024-04-21 at 8 54 36 PM
craigsapp commented 4 months ago

Maybe also a larger default tempo min margin, since for the case of the g in Adagio, it is nearly touching the staff line (such as 3 MEI units instead of 1.5ish).

rettinghaus commented 4 months ago

Please use the appropriate MEI attribute @tempo.dist.

image

MEI example ```xml Sonata in D major, op. @{OPS}, no. @{ONM} (@{SCT}), Adagio Sonata in D major, op. @{OPS}, no. @{ONM} (@{SCT}), Adagio Vivaldi, Antonio Lucio encoder Fran Bennion 2024/04/21 2004/10/09 (C) 2009, 2024 Center for Computer Assisted Research in the Humanities. Converted from MuseData with musedata2hum on Sun Apr 21 19:20:58 2024 RV 62 / Estienne Roger (No. 363), Amsterdam [facs.] RV 62 / Estienne Roger (No. 363), Amsterdam [facs.] Verovio

Transcoded from Humdrum

12 sonatas for two violins and basso continuo Antonio Vivaldi: Thematisch-systematisches Verzeichnis seiner Werke (Ryom-Verzeichnis) RV 62 1 <titlePart type="main" analog="humdrum:OTL">Sonata in D major, op. @{OPS}, no. @{ONM} (@{SCT})</titlePart> <titlePart type="movementName" analog="humdrum:OMD">Adagio</titlePart> <titlePart type="number" analog="humdrum:ONM">6</titlePart> <titlePart type="movementNumber" analog="humdrum:OMV">3. [Adagio]</titlePart> <titlePart type="opusNumber" analog="humdrum:OPS">1</titlePart> Vivaldi, Antonio Lucio Vivaldi, Antonio Lucio 1678-03-04 1741-08-28 reference COM Vivaldi, Antonio Lucio reference CDT 1678/03/04-1741/08/28 reference OPR 12 sonatas for two violins and basso continuo reference OTL Sonata in D major, op. @{OPS}, no. @{ONM} (@{SCT}) reference OPS 1 reference ONM 6 reference OMV 3. [Adagio] reference SCT RV 62 reference SCA Antonio Vivaldi: Thematisch-systematisches Verzeichnis seiner Werke (Ryom-Verzeichnis) reference OMD Adagio reference key f# reference SMS RV 62 / Estienne Roger (No. 363), Amsterdam [facs.] reference ENC Fran Bennion reference END 2004/10/09 reference ONB Converted from MuseData with musedata2hum on Sun Apr 21 19:20:58 2024 reference YEM (C) 2004, 2004 Center for Computer Assisted Research in the Humanities. reference system-decoration [(s1,s2,s3)] reference URL-pdf https://pdf.musedata.org/vivaldi-op01-no06.pdf#page=3 MuseData edition reference URL-pdf https://s9.imslp.org/files/imglnks/usimg/1/18/IMSLP280399-PMLP10351-Vivaldi_Sonatas_Op_1_-_Violino_Primo.pdf#page=10 Violino primo part, Amsterdam: Estienne Roger, n.d.(ca.1723). Plate 363. reference URL-pdf https://s9.imslp.org/files/imglnks/usimg/d/d5/IMSLP280400-PMLP10351-Vivaldi_Sonatas_Op_1_-_Violino_Secondo.pdf#page=9 Violino secondo part, Amsterdam: Estienne Roger, n.d.(ca.1723). Plate 363. reference URL-pdf https://s9.imslp.org/files/imglnks/usimg/8/89/IMSLP280401-PMLP10351-Vivaldi_Sonatas_Op_1_-_Organo_e_Violoncello.pdf#page=8 Organo e Violoncello parts, Amsterdam: Estienne Roger, n.d.(ca.1723). Plate 363. reference URL-youtube https://www.youtube.com/watch?v=P5HHPe_W6Uo&t=1847s L'Arte dell'Arco reference title @{OTL}, mov. @{OMV} reference EEV 2024/04/21 reference source-file https://bitbucket.org/musedata/vivaldi/src/master/roger/op1/rv062_06/stage2/03/01 reference source-file https://bitbucket.org/musedata/vivaldi/src/master/roger/op1/rv062_06/stage2/03/02 reference source-file https://bitbucket.org/musedata/vivaldi/src/master/roger/op1/rv062_06/stage2/03/03 reference source-file https://bitbucket.org/musedata/vivaldi/src/master/roger/op1/rv062_06/stage2/03/04
Sonata in D major, op. @{OPS}, no. @{ONM} (@{SCT}) Antonio Lucio Vivaldi 1678–1741
Adagio
```

NB: Your example is not valid MEI.

craigsapp commented 4 months ago

Please use the appropriate MEI attribute @tempo.dist.

Thanks!

Your example is not valid MEI.

Are you sure? It displays in verovio.

rettinghaus commented 4 months ago

Are you sure? It displays in verovio.

There's more to MEI than "just notes". Try using a validator that supports RelaxNG.

craigsapp commented 4 months ago

Errors in the Humdrum-to-MEI converter can be reported to either

https://github.com/craigsapp/humlib/issues

or

https://github.com/humdrum-tools/verovio-humdrum-viewer/issue

riscodes commented 4 months ago

Is it possible to control these tempo margins when using xml input format instead of mei? Like dynamDist does for dynamics.