Skip to content
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

wrong midi output for notes with multiple syllables #3633

Open
fernandoherreradelasheras opened this issue Mar 22, 2024 · 0 comments
Open

wrong midi output for notes with multiple syllables #3633

fernandoherreradelasheras opened this issue Mar 22, 2024 · 0 comments

Comments

@fernandoherreradelasheras
Copy link
Contributor

Notes with multiple syllables (usually no more than two) connected by elision slurs like this:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://music-encoding.org/schema/5.0/mei-all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="https://music-encoding.org/schema/5.0/mei-all.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<mei xmlns="http://www.music-encoding.org/ns/mei" meiversion="5.0">
   <meiHead />
   <music>
      <body>
         <mdiv>
            <score>
               <scoreDef>
                  <staffGrp>
                     <staffDef n="1" lines="5" meter.count="4" meter.unit="4">
                        <clef shape="G" line="2" />
                     </staffDef>
                  </staffGrp>
               </scoreDef>
               <section>
                  <pb />
                  <measure right="end" n="1">
                     <staff n="1">
                        <layer n="1">
                           <note dur="4" oct="4" pname="g">
                              <verse n="1">
                                 <syl>el</syl>
                              </verse>
                           </note>
                           <note dur="4" oct="5" pname="c">
                              <verse n="1">
                                 <syl con="d" wordpos="i">a</syl>
                              </verse>
                            </note>
                           <note dur="4" oct="5" pname="c">
                              <verse n="1">
                                 <syl con="b" wordpos="t">gua</syl>
                                 <syl con="d" wordpos="i">a</syl>
                              </verse>
                           </note>
                           <note dur="4" oct="5" pname="c">
                              <verse n="1">
                                 <syl wordpos="t">zul</syl>
                              </verse>
                            </note>
                        </layer>
                     </staff>
                  </measure>
               </section>
            </score>
         </mdiv>
      </body>
   </music>
</mei>

are properly rendered in SVG:

lyrics-with-slision-slurs

But the midi output adds an event for each syl element in the note:

mididump-with-syl-slur

Resulting on the last one replacing the previous one.

As MIDI does not support anything else than a single text event per note we could try to split notes on those situations or just join all text syllables on the same event. This last approach looks simpler and works fine with software like synthethizer V. As separator I think space is the choice as messages are limited to ASCII and dash would be confusing on karaoke-like apps displaying lyrics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant