2 This file is part of LilyPond, the GNU music typesetter.
4 Copyright (C) 2007--2011 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"
33 Midi_event (int delta, Midi_item *midi);
37 string to_string () const;
41 variable sized MIDI data
46 void set (string header_string, string data_string, string footer_string);
47 virtual string to_string () const;
48 virtual string data_string () const;
49 DECLARE_CLASSNAME (Midi_chunk);
50 virtual ~Midi_chunk ();
53 string footer_string_;
54 string header_string_;
57 class Midi_header : public Midi_chunk
60 DECLARE_CLASSNAME (Midi_header);
62 Midi_header (int format, int tracks, int clocks_per_4);
65 class Midi_track : public Midi_chunk
70 DECLARE_CLASSNAME (Midi_track);
72 vector<Midi_event *> events_;
74 Midi_track (int number, bool port);
77 void add (int, Midi_item *midi);
78 virtual string data_string () const;
81 #endif /* MIDI_CHUNK_HH */