X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fperformance.cc;h=46180d0e5d857a16a0445cd15af6733a42eb21a7;hb=9e6f16dddf9e21b29eed1717efe4bac6c20774ba;hp=439d9489f175727bc3ad0624179acaa49b8145d2;hpb=1b344bd7394e98933bc482a7b64b8af681a96861;p=lilypond.git diff --git a/lily/performance.cc b/lily/performance.cc index 439d9489f1..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" @@ -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)); +}