-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow graphical notes in tempo settings #129
Comments
Partially implemented with commit rism-digital/verovio@f34343b Only Examples: |
Now implemented in VHV: Test data:
conversion from MusicXML to Humdrum is also mostly implemented. |
Reopen, because I should also implement Note that tempo interpretations, such as Note that |
Here is an example with Humdrum data:
MEI conversion: <?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://music-encoding.org/schema/4.0.0/mei-all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="https://music-encoding.org/schema/4.0.0/mei-all.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<mei xmlns="http://www.music-encoding.org/ns/mei" meiversion="4.0.0">
<meiHead>
<fileDesc>
<titleStmt>
<title />
</titleStmt>
<pubStmt />
</fileDesc>
<encodingDesc>
<appInfo>
<application isodate="2020-01-12T18:07:13" version="2.4.0-dev-f414c2d-dirty">
<name>Verovio</name>
<p>Transcoded from Humdrum</p>
</application>
</appInfo>
</encodingDesc>
<workList>
<work>
<title />
</work>
</workList>
<extMeta>
<frames xmlns="http://www.humdrum.org/ns/humxml">
<metaFrame n="0" token="!!!OMD: Allegro ([quarter-dot] = 80)" xml:id="L1">
<frameInfo>
<startTime float="0" />
<frameType>reference</frameType>
<referenceKey>OMD</referenceKey>
<referenceValue>Allegro ([quarter-dot] = 80)</referenceValue>
</frameInfo>
</metaFrame>
<metaFrame n="12" token="!!!OMD: Presto ([4.] = 120)" xml:id="L13">
<frameInfo>
<startTime float="3" />
<frameType>reference</frameType>
<referenceKey>OMD</referenceKey>
<referenceValue>Presto ([4.] = 120)</referenceValue>
</frameInfo>
</metaFrame>
</frames>
</extMeta>
</meiHead>
<music>
<body>
<mdiv xml:id="mdiv-0000001518978466">
<score xml:id="score-0000000185482526">
<scoreDef xml:id="scoredef-0000001732822319" midi.bpm="120">
<staffGrp xml:id="staffgrp-0000000552538887">
<staffDef xml:id="staffdef-0000000449355207" n="1" lines="5">
<clef xml:id="clef-0000000537221906" shape="G" line="2" />
<meterSig xml:id="metersig-L3F1" count="6" unit="8" />
</staffDef>
</staffGrp>
</scoreDef>
<section xml:id="section-L2F1">
<measure xml:id="measure-L1">
<staff xml:id="staff-0000000880364599" n="1">
<layer xml:id="layer-L2F1N1" n="1">
<beam xml:id="beam-L6F1-L8F1">
<note xml:id="note-L6F1" dur="8" oct="4" pname="c" accid.ges="n" />
<note xml:id="note-L7F1" dur="8" oct="4" pname="d" accid.ges="n" />
<note xml:id="note-L8F1" dur="8" oct="4" pname="e" accid.ges="n" />
</beam>
<beam xml:id="beam-L9F1-L11F1">
<note xml:id="note-L9F1" dur="8" oct="4" pname="c" accid.ges="n" />
<note xml:id="note-L10F1" dur="8" oct="4" pname="d" accid.ges="n" />
<note xml:id="note-L11F1" dur="8" oct="4" pname="e" accid.ges="n" />
</beam>
</layer>
</staff>
<tempo xml:id="tempo-L1F1" staff="1" tstamp="1.000000">Allegro (<rend xml:id="rend-0000001023267855" fontname="VerovioText"></rend> = 80)</tempo>
</measure>
<measure xml:id="measure-L12" n="2">
<staff xml:id="staff-L12F1N1" n="1">
<layer xml:id="layer-L12F1N1" n="1">
<beam xml:id="beam-L15F1-L17F1">
<note xml:id="note-L15F1" dur="8" oct="4" pname="c" accid.ges="n" />
<note xml:id="note-L16F1" dur="8" oct="4" pname="d" accid.ges="n" />
<note xml:id="note-L17F1" dur="8" oct="4" pname="e" accid.ges="n" />
</beam>
<beam xml:id="beam-L18F1-L20F1">
<note xml:id="note-L18F1" dur="8" oct="4" pname="c" accid.ges="n" />
<note xml:id="note-L19F1" dur="8" oct="4" pname="d" accid.ges="n" />
<note xml:id="note-L20F1" dur="8" oct="4" pname="e" accid.ges="n" />
</beam>
</layer>
</staff>
<tempo xml:id="tempo-L13F1" staff="1" tstamp="1.000000">Presto (<rend xml:id="rend-0000001124222060" fontname="VerovioText"></rend> = 120)</tempo>
</measure>
<measure xml:id="measure-L21" right="end" n="2">
<staff xml:id="staff-L21F1N1" n="1">
<layer xml:id="layer-L21F1N1" n="1">
<beam xml:id="beam-L24F1-L26F1">
<note xml:id="note-L24F1" dur="8" oct="4" pname="c" accid.ges="n" />
<note xml:id="note-L25F1" dur="8" oct="4" pname="d" accid.ges="n" />
<note xml:id="note-L26F1" dur="8" oct="4" pname="e" accid.ges="n" />
</beam>
<beam xml:id="beam-L27F1-L29F1">
<note xml:id="note-L27F1" dur="8" oct="4" pname="c" accid.ges="n" />
<note xml:id="note-L28F1" dur="8" oct="4" pname="d" accid.ges="n" />
<note xml:id="note-L29F1" dur="8" oct="4" pname="e" accid.ges="n" />
</beam>
</layer>
</staff>
<tempo xml:id="tempo-L24F1" place="above" staff="1" tstamp="1.000000">a tempo (<rend xml:id="rend-0000000810288529" fontname="VerovioText"></rend> = 80)</tempo>
</measure>
</section>
</score>
</mdiv>
</body>
</music>
</mei> |
When there is a tempo setting in terms of metronome values, allow for a graphical note to be displayed. For example
[quarter] = 60 MM
, where[quarter]
is a graphical quarter note.This will be encoded by placing the name of the rhythm in square brackets, such as given above. This pattern will then be converted into a graphical note when converting into MEI (as a unicode symbol for a quarter note in this case.
For dotted quarter notes:
[quarter-dot]
should be the text representation. Also allow[whole]
,[half]
,[eighth]
, and[sixteenth]
, and[breve]
for a double whole note.The text was updated successfully, but these errors were encountered: