AUDIO: Added dump-midi mechanism
This mechanism is enabled by '--dump-midi' command line parameter. The midi events are printed to screen, and dumped to 'dump.mid' file.
This commit is contained in:
parent
1fb3d61b56
commit
3b4810aab4
22 changed files with 243 additions and 23 deletions
|
@ -57,7 +57,7 @@ public:
|
|||
int open();
|
||||
bool isOpen() const { return _isOpen; }
|
||||
void close();
|
||||
void send(uint32 b);
|
||||
void send(uint32 b) override;
|
||||
void sysEx(const byte *msg, uint16 length);
|
||||
|
||||
private:
|
||||
|
@ -109,6 +109,8 @@ void MidiDriver_SEQ::close() {
|
|||
}
|
||||
|
||||
void MidiDriver_SEQ::send(uint32 b) {
|
||||
midiDriverCommonSend(b);
|
||||
|
||||
unsigned char buf[256];
|
||||
int position = 0;
|
||||
|
||||
|
@ -157,6 +159,8 @@ void MidiDriver_SEQ::sysEx(const byte *msg, uint16 length) {
|
|||
|
||||
assert(length + 2 <= 266);
|
||||
|
||||
midiDriverCommonSysEx(msg, length);
|
||||
|
||||
buf[position++] = SEQ_MIDIPUTC;
|
||||
buf[position++] = 0xF0;
|
||||
buf[position++] = _device_num;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue