4 // source file of the GNU LilyPond music typesetter
6 // (c) 1997 Jan Nieuwenhuizen <jan@digicash.com>
11 #include "string-convert.hh"
14 #include "midi-item.hh"
15 #include "midi-stream.hh"
18 Midi_stream::Midi_stream (String filename_str)
20 filename_str_ = filename_str;
25 Midi_stream::~Midi_stream()
31 Midi_stream::operator <<( String str)
34 str = String_convert::bin2hex_str (str);
45 Midi_stream::operator <<( Midi_item const& mitem_c_r)
47 // *this << mitem_c_r.str();
48 mitem_c_r.output (this);
55 Midi_stream::operator <<( int i)
57 // output binary string ourselves
58 *this << Midi_item::i2varint_str (i);
65 os_p_ = new ofstream (filename_str_);
67 error ("can't open `" + filename_str_ + "\'");