changes before notes arrive. This fixes instrument of the first
note in a score.
2004-03-26 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * lily/staff-performer.cc (create_audio_elements): play instrument
+ changes before notes arrive. This fixes instrument of the first
+ note in a score.
+
* scripts/convert-ly.py (FatalConversionError.conv): add #'() case
to 1.9.0 conversion.
-
* lily/mark-engraver.cc: doc string.
announce_element (Audio_element_info (instrument_name_, 0));
instrument_ = new Audio_instrument (str);
announce_element (Audio_element_info (instrument_, 0));
+
+ /*
+ Have to be here before notes arrive into the staff.
+ */
+ play_element (instrument_);
+ play_element (instrument_name_);
}
Performer_group_performer::create_audio_elements ();
}
play_element (tempo_);
tempo_ = 0;
}
- if (instrument_name_)
- {
- play_element (instrument_name_);
- instrument_name_ = 0;
- }
- if (instrument_)
- {
- play_element (instrument_);
- instrument_ = 0;
- }
+ instrument_name_ = 0;
+ instrument_ = 0;
Performer_group_performer::stop_translation_timestep ();
}