LEFT | RIGHT |
(no file at all) | |
1 /* | 1 /* |
2 This file is part of LilyPond, the GNU music typesetter. | 2 This file is part of LilyPond, the GNU music typesetter. |
3 | 3 |
4 Copyright (C) 2007--2019 Han-Wen Nienhuys <hanwen@lilypond.org> | 4 Copyright (C) 2007--2019 Han-Wen Nienhuys <hanwen@lilypond.org> |
5 | 5 |
6 LilyPond is free software: you can redistribute it and/or modify | 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 | 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 | 8 the Free Software Foundation, either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 /** | 40 /** |
41 variable sized MIDI data | 41 variable sized MIDI data |
42 */ | 42 */ |
43 class Midi_chunk | 43 class Midi_chunk |
44 { | 44 { |
45 public: | 45 public: |
46 void set (const string &header_string, const string &data_string, const string
&footer_string); | 46 void set (const string &header_string, const string &data_string, const string
&footer_string); |
47 virtual string to_string () const; | 47 virtual string to_string () const; |
48 virtual string data_string () const; | 48 virtual string data_string () const; |
49 DECLARE_CLASSNAME (Midi_chunk); | 49 VIRTUAL_CLASS_NAME (Midi_chunk); |
50 virtual ~Midi_chunk (); | 50 virtual ~Midi_chunk (); |
51 private: | 51 private: |
52 string data_string_; | 52 string data_string_; |
53 string footer_string_; | 53 string footer_string_; |
54 string header_string_; | 54 string header_string_; |
55 }; | 55 }; |
56 | 56 |
57 class Midi_header : public Midi_chunk | 57 class Midi_header : public Midi_chunk |
58 { | 58 { |
59 public: | 59 public: |
60 DECLARE_CLASSNAME (Midi_header); | 60 OVERRIDE_CLASS_NAME (Midi_header); |
61 | 61 |
62 Midi_header (int format, int tracks, int clocks_per_4); | 62 Midi_header (int format, int tracks, int clocks_per_4); |
63 }; | 63 }; |
64 | 64 |
65 class Midi_track : public Midi_chunk | 65 class Midi_track : public Midi_chunk |
66 { | 66 { |
67 public: | 67 public: |
68 int number_; | 68 int number_; |
69 int port_; | 69 int port_; |
70 DECLARE_CLASSNAME (Midi_track); | 70 OVERRIDE_CLASS_NAME (Midi_track); |
71 | 71 |
72 vector<Midi_event *> events_; | 72 vector<Midi_event *> events_; |
73 | 73 |
74 Midi_track (int number, bool port); | 74 Midi_track (int number, bool port); |
75 ~Midi_track (); | 75 ~Midi_track (); |
76 | 76 |
77 void add (int, Midi_item *midi); | 77 void add (int, Midi_item *midi); |
78 virtual string data_string () const; | 78 string data_string () const override; |
79 void push_back (int, Midi_item *midi); | 79 void push_back (int, Midi_item *midi); |
80 }; | 80 }; |
81 | 81 |
82 #endif /* MIDI_CHUNK_HH */ | 82 #endif /* MIDI_CHUNK_HH */ |
83 | 83 |
LEFT | RIGHT |