X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fperformance.cc;h=4fa167d8261f93c14fed3f63ff14116ccad1a6df;hb=5b4b0d6e9a197e8f9eb085b7c2ad78b8be3e5cfc;hp=439d9489f175727bc3ad0624179acaa49b8145d2;hpb=87eedcd59f4082cb0841528ad5bc82cb1d1191e3;p=lilypond.git diff --git a/lily/performance.cc b/lily/performance.cc index 439d9489f1..4fa167d826 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--2008 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)); +}