2 This file is part of LilyPond, the GNU music typesetter.
4 Copyright (C) 2007--2010 Han-Wen Nienhuys <hanwen@lilypond.org>
6 LilyPond is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 LilyPond is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
23 #include "lily-proto.hh"
24 #include "virtual-methods.hh"
25 #include "std-vector.hh"
34 Midi_event (int delta, Midi_item *midi);
38 string to_string () const;
45 variable sized MIDI data
50 void set (string header_string, string data_string, string footer_string);
51 virtual string to_string () const;
52 virtual string data_string () const;
53 DECLARE_CLASSNAME(Midi_chunk);
54 virtual ~Midi_chunk ();
57 string footer_string_;
58 string header_string_;
61 class Midi_header : public Midi_chunk
64 DECLARE_CLASSNAME(Midi_header);
66 Midi_header (int format, int tracks, int clocks_per_4);
69 class Midi_track : public Midi_chunk
73 DECLARE_CLASSNAME(Midi_track);
75 vector<Midi_event*> events_;
80 void add (int, Midi_item *midi);
81 virtual string data_string () const;
84 #endif /* MIDI_CHUNK_HH */