lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MIDI and Volta repeats in parallel music


From: Michael Ellis
Subject: MIDI and Volta repeats in parallel music
Date: Wed, 19 Nov 2014 10:54:02 -0500




I find it advantageous when working with multiple voices to keep 'structural' information (meter, tempo, etc.) in a separate voice that gets combined with the other voices as illustrated in the image and code below.  In this example, the pdf layout is correct and the MIDI output honors the tempo change, but doesn't repeat the second measure despite using a separate score block with \unfoldRepeats.


 
music = \relative c' { c4 d e | f g a b  }

structure = { 
        \time 3/4 \tempo 4=60 s2. 
        \time 4/4 \tempo 4=120 \repeat volta 2 { s1 } 
         }

\score {
      \new Staff = "Music" {
      <<
        \new Voice = "Music" { \voiceOne \music }
        \new Voice = "Structure" { \voiceTwo \structure }
      >>
      }     
}

\score {
    \unfoldRepeats { << \structure \\ \music >> }
    \midi {
    }
}

I can get the MIDI to repeat by copying the \repeat into the music variable, e.g. 

music = \relative c' { c4 d e | \repeat volta 2 { f g a b } }

but that defeats the convenience of keeping the 'structural' info in a separate voice.  Is there a way to get the repeats in MIDI without resorting to copying them into the notation for every voice?


Thanks,
Mike Ellis

TransLily -- a minimal assistant for part transcription with LilyPond.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]