diff options
author | Tim E. Real <termtech@rogers.com> | 2011-02-24 17:27:04 +0000 |
---|---|---|
committer | Tim E. Real <termtech@rogers.com> | 2011-02-24 17:27:04 +0000 |
commit | cc12a523f8f4065f133b1ec38ccba2e7be74d48b (patch) | |
tree | ce42861856bbf2b23ae7f21f02aabbc775ad9a32 /muse2/muse/track.cpp | |
parent | 8e4d18fdcc12c7202e287cc8a2ec2214667c8844 (diff) |
Improved midi auto-connections. Fixed Organ synth crashing.
Diffstat (limited to 'muse2/muse/track.cpp')
-rw-r--r-- | muse2/muse/track.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/muse2/muse/track.cpp b/muse2/muse/track.cpp index 5038820e..bd3d7548 100644 --- a/muse2/muse/track.cpp +++ b/muse2/muse/track.cpp @@ -447,6 +447,23 @@ void MidiTrack::setOutPortAndUpdate(int i) } //--------------------------------------------------------- +// setOutPortAndChannelAndUpdate +//--------------------------------------------------------- + +void MidiTrack::setOutPortAndChannelAndUpdate(int port, int ch) +{ + if(_outPort == port && _outChannel == ch) + return; + + //removePortCtrlEvents(); + removePortCtrlEvents(this); + _outPort = port; + _outChannel = ch; + //addPortCtrlEvents(); + addPortCtrlEvents(this); +} + +//--------------------------------------------------------- // setInPortAndChannelMask // For old song files with port mask (max 32 ports) and channel mask (16 channels), // before midi routing was added (the iR button). p3.3.48 |