lilypond-user
[Top][All Lists]
Advanced

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

Re: programming error: moment not increasing


From: Jean-Charles Malahieude
Subject: Re: programming error: moment not increasing
Date: Sat, 19 Nov 2011 11:30:24 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111115 Thunderbird/8.0

Le 18/11/2011 15:05, Sebastian Canagaratna disait :
I can write these part in different scores, but the midi comes in
different files.

If you'd like to have _all_ sections in one "concatenated" MIDI, you just have to create a "musical expression" indicating what is the sequence. Don't forget that when you type

\relative c'' { a b }

you mean there is a note A followed by a note B.

Try the idea bellow.

Cheers,
Jean-Charles

---8<--- snippet --->8---
global = {
   \key c \major
   \time 4/4
   }

MusicA = \relative c'' {
  a4 a a a }

MusicB = \relative c'' {
  b4 b b b }

WordsA = \lyricmode { A A A A }

WordsB = \lyricmode { B B B B }

\score { % FIRST printout
  \new Staff = "scoreA" {
    <<
      \new Voice = "singA" <<
        \global
        \clef treble
        \MusicA
      >>
      \new Lyrics \lyricsto "sing"A \WordsA
    >>
  }
  \layout { }
}

\score { % SECOND printout
  \new Staff = "scoreB" {
    <<
      \new Voice = "singB" <<
        \global
        \clef treble
        \MusicB
      >>
      \new Lyrics \lyricsto "singB" \WordsB
    >>
  }
  \layout { }
}

\score { % CONCATENATED MIDI
  \new Staff = "score" {
    <<
      \new Voice = "sing" <<
        \global
        \clef treble
        { \MusicA \MusicB } % A and B are sequential
      >>
      \new Lyrics \lyricsto "sing" { \WordsA \WordsB }
    >>
  }
  \midi { }
}



reply via email to

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