[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: newbie issues:repetition, midi & lyrics
From: |
Robin Bannister |
Subject: |
Re: newbie issues:repetition, midi & lyrics |
Date: |
Tue, 20 Jan 2009 23:33:52 +0100 |
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