150 : _type(t), _channel(c), _a(a), _b(b) {}
152 void set(uchar t, uchar c, uchar a, uchar b) {
159 uchar
type()
const {
return _type; }
173 int velo()
const {
return _b; }
180 void setData(
int a,
int b) { _a = a; _b = b; }
181 void setData(
int t,
int a,
int b) { _type = t; _a = a; _b = b; }
183 bool isChannelEvent()
const;
206 const uchar*
edata()
const {
return _edata; }
208 int len()
const {
return _len; }
257 bool isMuted()
const;
282 bool operator==(
const Event&)
const;
298 int voice()
const {
return _voice; }
300 int offtime()
const {
return _ontime + _duration; }
301 QList<Event>&
notes() {
return _notes; }
302 const uchar*
edata()
const {
return _edata; }
304 int len()
const {
return _len; }
308 int tpc()
const {
return _tpc; }
321 void insert(
const Event&);
322 void insertNote(
int channel,
Note*);
325 class EventMap :
public std::multimap<int, NPlayEvent> {
326 int _highestChannel = 15;
const uchar * edata() const
Definition: event.h:206
uchar * _edata
Definition: event.h:197
int _noquantDuration
Definition: event.h:267
int noquantDuration() const
Definition: event.h:290
int _ontime
Definition: event.h:265
void setValue(int v)
Definition: event.h:178
int _len
Definition: event.h:198
void setData(int a, int b)
Definition: event.h:180
void setNoquantOntime(int v)
Definition: event.h:289
PlayEvent(uchar t, uchar c, uchar a, uchar b)
Definition: event.h:227
void setNote(const Note *v)
Definition: event.h:311
int tpc() const
Definition: event.h:308
int metaType() const
Definition: event.h:210
uchar _b
Definition: event.h:145
void setMetaType(int v)
Definition: event.h:211
int _len
Definition: event.h:273
void setType(uchar t)
Definition: event.h:160
void setNote(const Note *v)
Definition: event.h:251
void setEData(uchar *d)
Definition: event.h:303
void setData(int t, int a, int b)
Definition: event.h:181
const uchar * edata() const
Definition: event.h:302
int _noquantOntime
Definition: event.h:266
void setChannel(uchar c)
Definition: event.h:162
EventList::const_iterator ciEvent
Definition: event.h:333
int discard() const
Definition: event.h:256
const Note * note() const
Definition: event.h:250
int noquantOntime() const
Definition: event.h:288
PlayEvent()
Definition: event.h:225
int getOriginatingStaff() const
Definition: event.h:253
void setDataA(int v)
Definition: event.h:168
void setOriginatingStaff(int i)
Definition: event.h:254
uchar _type
Definition: event.h:142
MidiCoreEvent(uchar t, uchar c, uchar a, uchar b)
Definition: event.h:149
uchar type() const
Definition: event.h:159
NPlayEvent(uchar t, uchar c, uchar a, uchar b)
Definition: event.h:245
bool operator==(const MidiCoreEvent &e) const
Definition: event.h:185
const Note * _note
Definition: event.h:275
int controller() const
Definition: event.h:166
void setLen(int l)
Definition: event.h:209
int dataB() const
Definition: event.h:172
void setPitch(int v)
Definition: event.h:169
MidiCoreEvent()
Definition: event.h:148
QString midiMetaName(int meta)
Definition: event.cpp:342
int _metaType
Definition: event.h:274
void setNoquantDuration(int v)
Definition: event.h:291
int voice() const
Definition: event.h:298
void setMetaType(int v)
Definition: event.h:307
int _voice
Definition: event.h:270
int _duration
Definition: event.h:268
uchar channel() const
Definition: event.h:161
int len() const
Definition: event.h:208
void setTuning(float v)
Definition: event.h:230
int duration() const
Definition: event.h:296
void setLen(int l)
Definition: event.h:305
Definition: aeolus.cpp:26
int velo() const
Definition: event.h:173
void setDiscard(int d)
Definition: event.h:255
QList< Event > _notes
Definition: event.h:271
void setVelo(int v)
Definition: event.h:177
float tuning() const
Definition: event.h:229
void setTpc(int v)
Definition: event.h:309
Definition: xmlwriter.h:26
int len() const
Definition: event.h:304
BeatType
Definition: sig.h:29
MidiEvent(uchar t, uchar c, uchar a, uchar b)
Definition: event.h:203
int pitch() const
Definition: event.h:165
void setDuration(int v)
Definition: event.h:297
NPlayEvent(const MidiCoreEvent &e)
Definition: event.h:247
int value() const
Definition: event.h:174
uchar * _edata
Definition: event.h:272
void setController(int v)
Definition: event.h:170
void setVoice(int val)
Definition: event.h:299
void setEData(uchar *d)
Definition: event.h:207
int _tpc
Definition: event.h:269
Graphic representation of a note.
Definition: note.h:212
uchar _a
Definition: event.h:144
void setDataB(int v)
Definition: event.h:176
int metaType() const
Definition: event.h:306
int offtime() const
Definition: event.h:300
void setOntime(int v)
Definition: event.h:294
uchar _channel
Definition: event.h:143
MidiEvent()
Definition: event.h:202
int dataA() const
Definition: event.h:164
int ontime() const
Definition: event.h:293
NPlayEvent()
Definition: event.h:244
PlayEvent(const MidiCoreEvent &e)
Definition: event.h:226
EventList::iterator iEvent
Definition: event.h:332
int _metaType
Definition: event.h:199
void registerChannel(int c)
Definition: event.h:329
const Note * note() const
Definition: event.h:310
QList< Event > & notes()
Definition: event.h:301