diff options
author | Tim E. Real <termtech@rogers.com> | 2012-10-22 06:54:39 +0000 |
---|---|---|
committer | Tim E. Real <termtech@rogers.com> | 2012-10-22 06:54:39 +0000 |
commit | b6cb5a7a97c4959ddd6ef4fabdf0ddf0b3604d1b (patch) | |
tree | cb957648f670b4f7697eddbe37adcda8b620fb6d /muse2/muse/song.cpp | |
parent | bb2ae55efec337e3b372937582dcd154fb36e9e9 (diff) |
Fixed regression: Re-add default managed controllers to midi ports at Song::clear.
W.I.P. Preparations for Aftertouch and Poly Aftertouch graph editing.
Diffstat (limited to 'muse2/muse/song.cpp')
-rw-r--r-- | muse2/muse/song.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/muse2/muse/song.cpp b/muse2/muse/song.cpp index 036892f0..542c6abc 100644 --- a/muse2/muse/song.cpp +++ b/muse2/muse/song.cpp @@ -2113,8 +2113,12 @@ void Song::clear(bool signal, bool clear_all) // Clear all midi port controller values. for(int i = 0; i < MIDI_PORTS; ++i) + { // Remove the controllers AND the values so we start with a clean slate. MusEGlobal::midiPorts[i].controller()->clearDelete(true); + // Don't forget to re-add the default managed controllers. + MusEGlobal::midiPorts[i].addDefaultControllers(); + } _masterFlag = true; loopFlag = false; |