X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fmidi-stream.cc;h=8b84798f6200ec454577493aed020b6dff2c0dbc;hb=808ed8f67c62dbdc593905adbcfee15cccc8c889;hp=11afe02cf46b13e0dcc53f9a681348fdcbd558b3;hpb=e3f5de04521f1b0e1320987caf2c7d755280d16f;p=lilypond.git diff --git a/lily/midi-stream.cc b/lily/midi-stream.cc index 11afe02cf4..8b84798f62 100644 --- a/lily/midi-stream.cc +++ b/lily/midi-stream.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1997--2007 Jan Nieuwenhuizen + (c) 1997--2009 Jan Nieuwenhuizen */ #include "midi-stream.hh" @@ -13,7 +13,7 @@ using namespace std; #include "international.hh" #include "main.hh" -#include "midi-item.hh" +#include "midi-chunk.hh" #include "misc.hh" #include "program-option.hh" #include "stream.hh" @@ -41,20 +41,14 @@ Midi_stream::write (string str) size_t written = fwrite (str.data (), sz, n, out_file_); if (written != sz * n) - warning (_ ("cannot write to file: `%s'")); + warning (_f ("cannot write to file: `%s'", str.data ())); } void -Midi_stream::write (Midi_item const &midi) +Midi_stream::write (Midi_chunk const &midi) { string str = midi.to_string (); return write (str); } -void -Midi_stream::write (int i) -{ - write (Midi_item::i2varint_string (i)); -} -