[Top][All Lists]

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

midiInstrument changes play one note too late.

From: Michael Ellis
Subject: midiInstrument changes play one note too late.
Date: Tue, 13 Mar 2012 17:26:06 -0400

Is this a known problem?  I don't see any prior reports online and
I've been seeing it since at least 2.12 but assumed it was because I
was doing some fairly complicated things.  I took time to reduce it to
a minimal example today. It's still present in 2.15.33 as shown by the
example below.  FWIW, I'm running OS X 10.6.7 and playing the midi
with QuickTime.  I'm attaching the midi file.

Is there a workaround?


%% Minimal Example
%% BUG? Midi instrument changes are delayed by one note.
mymusic = {

  \set midiInstrument = "acoustic grand"
  c'1^"pno." |  % midi ok

  \set midiInstrument = "cello"
  d'1^"cel." |  % wrong : midi plays piano.

  \set midiInstrument = "acoustic grand"
  e'1^"pno." |  % wrong : midi plays cello
  c'1^"pno." |  % midi ok


\score {

        \new Voice = "Test" { \mymusic  }
        \layout {}

        \midi {
            % This lets us specify instrument in melody
            \context {
                \remove "Staff_performer"
            \context {
                \consists "Staff_performer"

\version "2.15.33"


Attachment: midi_late_instrument_change.midi
Description: MIDI audio

reply via email to

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