bug-lilypond
[Top][All Lists]
Advanced

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

Midi instrument patch


From: Michael Welsh Duggan
Subject: Midi instrument patch
Date: Thu, 27 Oct 2005 00:33:30 -0400
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Patch to fix instrument changes in midi.  Currently, everything
remains as piano on playback.

Index: staff-performer.cc
===================================================================
RCS file: /cvsroot/lilypond/lilypond/lily/staff-performer.cc,v
retrieving revision 1.76
diff -u -p -r1.76 staff-performer.cc
--- staff-performer.cc  27 Aug 2005 20:05:58 -0000      1.76
+++ staff-performer.cc  27 Oct 2005 04:30:39 -0000
@@ -81,8 +81,10 @@ Staff_performer::process_music ()
   if (str.length ())
     {
       instrument_name_ = new Audio_text (Audio_text::INSTRUMENT_NAME, str);
+      audio_staff_->add_audio_item (instrument_name_);
       announce_element (Audio_element_info (instrument_name_, 0));
       instrument_ = new Audio_instrument (str);
+      audio_staff_->add_audio_item (instrument_);
       announce_element (Audio_element_info (instrument_, 0));
 
       /*

-- 
Michael Welsh Duggan
(address@hidden)




reply via email to

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