lilypond-user
[Top][All Lists]
Advanced

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

Re: Suppressing chords in MIDI output


From: Marc Hohl
Subject: Re: Suppressing chords in MIDI output
Date: Wed, 22 Sep 2010 10:13:00 +0200
User-agent: Thunderbird 2.0.0.24 (X11/20100317)

Peter Chubb schrieb:
"Christopher" == Christopher Meredith <address@hidden> 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





reply via email to

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