13 #ifndef __MIDIFILE_H__ 14 #define __MIDIFILE_H__ 60 void read(
void*, qint64);
69 bool write(
const void*, qint64);
75 void put(
unsigned char c) { write(&c, 1); }
82 bool read(
const QString& path);
83 bool read(QIODevice*);
85 bool write(
const QString& path);
86 bool write(QIODevice*);
88 const std::list<MidiTrack*>&
tracks()
const {
return _tracks; }
89 std::list<MidiTrack*>&
tracks() {
return _tracks; }
91 int format()
const {
return _format; }
QIODevice * fp
Definition: midifile.h:48
Definition: tempomap.h:22
Definition: midifile.h:30
const std::multimap< int, MidiEvent > & events() const
Definition: midifile.h:38
std::multimap< int, MidiEvent > _events
Definition: midifile.h:32
MidiTrack(MidiFile *)
Definition: midifile.cpp:200
void resetRunningStatus()
Definition: midifile.h:78
int click
current tick position in file
Definition: midifile.h:55
void setDivision(int val)
Definition: midifile.h:94
Definition: midievent.h:112
int format() const
Definition: midifile.h:91
std::list< MidiTrack * > _tracks
Definition: midifile.h:49
int _format
midi file format (0-2)
Definition: midifile.h:51
TempoMap _tempoMap
Definition: midifile.h:47
int status
running status
Definition: midifile.h:53
int division() const
Definition: midifile.h:93
std::list< MidiTrack * > & tracks()
Definition: midifile.h:89
const std::list< MidiTrack * > & tracks() const
Definition: midifile.h:88
qint64 curPos
current file byte position
Definition: midifile.h:56
Definition: midifile.h:46
void put(unsigned char c)
Definition: midifile.h:75
std::multimap< int, MidiEvent > & events()
Definition: midifile.h:39
MidiEventType
Definition: midievent.h:20
MidiFile * mf
Definition: midifile.h:31
void setFormat(int fmt)
Definition: midifile.h:92
int _division
Definition: midifile.h:50
const TempoMap & tempoMap() const
Definition: midifile.h:95
int sstatus
running status (not reset after meta or sysex events)
Definition: midifile.h:54