Grateful Frog wrote:
how to get that out in a midi file that plays properly, and only the melody not the lyrics and chords?

You can get the midi output to do repeats, but it won't know about the D.C. So give it a helping hand by defining
%%%%%%%%%%%%%%%%%%%%
myNotesDC = { \repeat volta 2 \notesOne \repeat volta 2 \notesBridge
 \alternative  {
   {\notesBridgeEndA}
   {\notesBridgeEndB}
 }
 \relative c'
 \notesOne
 \notesCoda
}
%%%%%%%%%%%%%%%%%%%%

and then set up a separate score block, just for the midi.
%%%%%%%%%%%%%%%%%%%%
% MIDI Output
\score { \unfoldRepeats { \relative c' \myNotesDC }

 \midi {
   \context {
     \Score tempoWholesPerMinute = #(ly:make-moment 86 4)
   }
 }
}
%%%%%%%%%%%%%%%%%%%%

Keep the first score block for the sheet music alone i.e. remove its midi block.

Cheers,
Robin


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to