Peter Chubb schrieb:
"Christopher" == Christopher Meredith <chmered...@gmail.com> writes:

Christopher> I use chordmode to print the chords above the piano
Christopher> music, but when rendering the MIDI file, I would prefer
Christopher> the chords to not be played.  Is there a way to have only
Christopher> the voices (and not the chords) output to MIDI?

It's generally best to have a separate score block for MIDI output, so
you can unroll repeats and so on --- just leave the chords out of
that score.

accomp=\chords {c4 f g2:7}
tune=\relative c'' { c4 c b a}
\score {
       <<
       \context Chords \accomp
       \context Staff {\key c \major \time 4/4 \tune}
       >>
       \layout{}
}
\score  {
       \unfoldRepeats <<
           \context Staff {\key c \major \time 4/4 \tune}
       >>
       \midi {}
}
From another post to this subject (about a year ago) I found

accomp=\chords {c4 f g2:7}
tune=\relative c'' { c4 c b a}
\score {
      <<
      \context Chords \accomp
      \context Staff {\key c \major \time 4/4 \tune}
      >>
      \layout{}
      \midi {
        \context { \ChordNameVoice \remove Note_performer }
      }
}

which has the advantage of not needing another \score-block,
but I haven't tested this.

HTH

Marc



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

Reply via email to