diff options
author | Tim E. Real <termtech@rogers.com> | 2010-11-23 23:30:52 +0000 |
---|---|---|
committer | Tim E. Real <termtech@rogers.com> | 2010-11-23 23:30:52 +0000 |
commit | 95300fae37761cd68d00b539251dcf0b9023660d (patch) | |
tree | 69366146701478b78c220b12514250a65bd3919e /muse2/muse/instruments/minstrument.h | |
parent | ad60c07b70f65bdeab8c0b3bd58bc5421d93f4ab (diff) |
Added struct SysEx and some friends, to minstrument.h, prep. for the instrument editor.
Diffstat (limited to 'muse2/muse/instruments/minstrument.h')
-rw-r--r-- | muse2/muse/instruments/minstrument.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/muse2/muse/instruments/minstrument.h b/muse2/muse/instruments/minstrument.h index dcb0deb9..3e132633 100644 --- a/muse2/muse/instruments/minstrument.h +++ b/muse2/muse/instruments/minstrument.h @@ -14,6 +14,7 @@ #include <vector> #include <QMenu> +#include <QList> class MidiPort; class QMenu; @@ -54,6 +55,13 @@ typedef std::vector<PatchGroup*> PatchGroupList; typedef PatchGroupList::iterator iPatchGroup; typedef PatchGroupList::const_iterator ciPatchGroup; +struct SysEx { + QString name; + QString comment; + int dataLen; + unsigned char* data; + }; + //--------------------------------------------------------- // MidiInstrument //--------------------------------------------------------- @@ -61,6 +69,7 @@ typedef PatchGroupList::const_iterator ciPatchGroup; class MidiInstrument { PatchGroupList pg; MidiControllerList* _controller; + QList<SysEx*> _sysex; bool _dirty; int _nullvalue; @@ -89,7 +98,10 @@ class MidiInstrument { bool dirty() const { return _dirty; } void setDirty(bool v) { _dirty = v; } - + const QList<SysEx*>& sysex() const { return _sysex; } + void removeSysex(SysEx* sysex) { _sysex.removeAll(sysex); } + void addSysex(SysEx* sysex) { _sysex.append(sysex); } + EventList* midiInit() const { return _midiInit; } EventList* midiReset() const { return _midiReset; } EventList* midiState() const { return _midiState; } @@ -109,6 +121,7 @@ class MidiInstrument { virtual void populatePatchPopup(QMenu*, int, MType, bool); void read(Xml&); void write(int level, Xml&); + PatchGroupList* groups() { return &pg; } }; |