diff options
author | Florian Jung <flo@windfisch.org> | 2011-05-24 13:39:39 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-05-24 13:39:39 +0000 |
commit | 50e54c9b95c39badcd1f30443f30a74a7eb69ea3 (patch) | |
tree | 80c9cfa61cb4b9b76dc22f2774551258024d8224 /muse2/muse/mididev.cpp | |
parent | ef0aa8834d71587f7c417bb36d865ed1c8919a0b (diff) |
improved step recording and minor fixes
Diffstat (limited to 'muse2/muse/mididev.cpp')
-rw-r--r-- | muse2/muse/mididev.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/muse2/muse/mididev.cpp b/muse2/muse/mididev.cpp index b5445b71..b13f571b 100644 --- a/muse2/muse/mididev.cpp +++ b/muse2/muse/mididev.cpp @@ -315,7 +315,7 @@ void MidiDevice::recordEvent(MidiRecordEvent& event) if (filterEvent(event, midiRecordType, false)) return; - + if (!applyMidiInputTransformation(event)) { if (midiInputTrace) printf(" midi input transformation: event filtered\n"); @@ -323,13 +323,17 @@ void MidiDevice::recordEvent(MidiRecordEvent& event) } // - // transfer noteOn events to gui for step recording and keyboard - // remote control + // transfer noteOn and Off events to gui for step recording and keyboard + // remote control (changed by flo93: added noteOff-events) // if (typ == ME_NOTEON) { int pv = ((event.dataA() & 0xff)<<8) + (event.dataB() & 0xff); song->putEvent(pv); } + else if (typ == ME_NOTEOFF) { + int pv = ((event.dataA() & 0xff)<<8) + (0x00); //send an event with velo=0 + song->putEvent(pv); + } ///if(_recBufFlipped) /// _recordEvents2.add(event); // add event to secondary list of recorded events |