Midi instrument patch

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Midi instrument patch

Michael Welsh Duggan
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
([hidden email])


_______________________________________________
bug-lilypond mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/bug-lilypond
Reply | Threaded
Open this post in threaded view
|

Re: Midi instrument patch

Han-Wen Nienhuys
Michael Welsh Duggan wrote:
> Patch to fix instrument changes in midi.  Currently, everything
> remains as piano on playback.
thanks. fixed.

--
  Han-Wen Nienhuys - [hidden email] - http://www.xs4all.nl/~hanwen


_______________________________________________
bug-lilypond mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/bug-lilypond