13 #ifndef __MIDIFILE_H__ 14 #define __MIDIFILE_H__ 52 const std::multimap<int, MidiEvent>&
events()
const {
return _events; }
53 std::multimap<int, MidiEvent>&
events() {
return _events; }
56 void setOutChannel(
int n);
63 void mergeNoteOnOffAndFindMidiType(
MidiType *mt);
89 bool write(
const void*, qint64);
94 void put(
unsigned char c) { write(&c, 1); }
95 void writeStatus(
int type,
int channel);
98 void read(
void*, qint64);
110 bool read(QIODevice*);
111 bool write(QIODevice*);
114 QList<MidiTrack>&
tracks() {
return _tracks; }
115 const QList<MidiTrack>&
tracks()
const {
return _tracks; }
126 void separateChannel();
bool _isDivisionInTps
ticks per second, alternative - ticks per beat
Definition: midifile.h:74
int outPort() const
Definition: midifile.h:57
int format() const
Definition: midifile.h:120
void setFormat(int fmt)
Definition: midifile.h:121
void put(unsigned char c)
Definition: midifile.h:94
int outChannel() const
Definition: midifile.h:55
MidiType midiType() const
Definition: midifile.h:117
void setDivision(int val)
Definition: midifile.h:125
bool _drumTrack
Definition: midifile.h:42
Definition: midifile.h:38
int sstatus
running status (not reset after meta or sysex events)
Definition: midifile.h:81
int _outChannel
Definition: midifile.h:40
MidiType
Definition: midifile.h:27
void setOutPort(int n)
Definition: midifile.h:58
std::multimap< int, MidiEvent > _events
Definition: midifile.h:39
QList< MidiTrack > & tracks()
Definition: midifile.h:114
const QList< MidiTrack > & tracks() const
Definition: midifile.h:115
const std::multimap< int, MidiEvent > & events() const
Definition: midifile.h:52
int _format
midi file format (0-2)
Definition: midifile.h:75
Definition: midifile.h:70
int status
running status
Definition: midifile.h:80
void resetRunningStatus()
Definition: midifile.h:106
Definition: aeolus.cpp:26
std::multimap< int, MidiEvent > & events()
Definition: midifile.h:53
MidiType _midiType
Definition: midifile.h:77
void setMidiType(MidiType mt)
Definition: midifile.h:118
QList< MidiTrack > _tracks
Definition: midifile.h:72
int _division
Definition: midifile.h:73
QIODevice * fp
Definition: midifile.h:71
int _outPort
Definition: midifile.h:41
bool _noRunningStatus
do not use running status on output
Definition: midifile.h:76
qint64 curPos
current file byte position
Definition: midifile.h:83
bool drumTrack() const
Definition: midifile.h:60
int click
current tick position in file
Definition: midifile.h:82
int division() const
Definition: midifile.h:123
bool isDivisionInTps() const
Definition: midifile.h:124
const int MIDI_CHANNEL
Definition: midifile.h:21