Hello,

when we select a percussive MIDI instrument with "Fixed" channel
assignment, the used channel is always 10.

The follow change seems to fix the problem:

diff -ur rosegarden~/src/gui/seqmanager/ChannelManager.cpp 
rosegarden/src/gui/seqmanager/ChannelManager.cpp
--- rosegarden~/src/gui/seqmanager/ChannelManager.cpp   2015-04-20 
12:10:45.620163630 +0200
+++ rosegarden/src/gui/seqmanager/ChannelManager.cpp    2015-04-20 
12:11:51.016341489 +0200
@@ -348,7 +348,10 @@
     if (m_instrument->getType() == Instrument::Midi) {
         // !!! Stopgap measure.  If we ever share allocators between
         // MIDI devices, this will have to become smarter.
-        if (m_instrument->isPercussion()) { channel = 9; }
+        if (m_instrument->isPercussion()) {
+            channel = (m_instrument->hasFixedChannel() ?
+                       m_instrument->getNaturalChannel() : 9);
+        }
     }
     m_channel.setChannelId(channel);
 }


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to