source file of the GNU LilyPond music typesetter
- (c) 1997--2007 Jan Nieuwenhuizen <janneke@gnu.org>
+ (c) 1997--2009 Jan Nieuwenhuizen <janneke@gnu.org>
*/
#include "midi-stream.hh"
-
+#include <cstring>
#include <cerrno>
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"
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));
-}
-