X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fperformance.cc;h=46180d0e5d857a16a0445cd15af6733a42eb21a7;hb=4764d492fd3bf942280aa6ed5e0a2f88510abd23;hp=2c02fc32f94f3ff64aacab4a6dfc1bce18845982;hpb=7adc0eb73854ea351f63feb22a218acf3a6ea865;p=lilypond.git diff --git a/lily/performance.cc b/lily/performance.cc index 2c02fc32f9..46180d0e5d 100644 --- a/lily/performance.cc +++ b/lily/performance.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1997--2007 Jan Nieuwenhuizen + (c) 1997--2009 Jan Nieuwenhuizen */ #include "performance.hh" @@ -17,7 +17,7 @@ using namespace std; #include "international.hh" #include "lily-version.hh" #include "main.hh" -#include "midi-item.hh" +#include "midi-chunk.hh" #include "midi-stream.hh" #include "score.hh" #include "string-convert.hh" @@ -38,7 +38,7 @@ Performance::output (Midi_stream &midi_stream) const { int tracks_ = audio_staffs_.size (); - midi_stream << Midi_header (1, tracks_, 384); + midi_stream.write (Midi_header (1, tracks_, 384)); if (be_verbose_global) progress_indication (_ ("Track...") + " "); @@ -94,7 +94,6 @@ Performance::write_output (string out) const /* Maybe a bit crude, but we had this before */ File_name file_name (out); - file_name.ext_ = "midi"; out = file_name.to_string (); Midi_stream midi_stream (out); @@ -109,3 +108,9 @@ void Performance::process () { } + +Performance * +unsmob_performance (SCM x) +{ + return dynamic_cast (unsmob_music_output (x)); +}