Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/Util/CSoundClient.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/Util/CSoundClient.py b/common/Util/CSoundClient.py
index 04db585..b6acd96 100644
--- a/common/Util/CSoundClient.py
+++ b/common/Util/CSoundClient.py
@@ -233,7 +233,8 @@ class _CSoundClientPlugin:
if (Config.DEBUG > 2): print 'INFO: updating pitch', (page<<16)+id, value
pitch = value
if self.instrumentDB.instId[note.cs.instrumentId].kit != None:
- instrument = self.instrumentDB.instId[note.cs.instrumentId].kit[pitch]
+ instrument = self.instrumentDB.instNamed[
+ self.instrumentDB.instId[note.cs.instrumentId].kit[pitch]]
csoundInstId = instrument.csoundInstrumentId
csoundTable = Config.INSTRUMENT_TABLE_OFFSET + instrument.instrumentId
if (Config.DEBUG > 2): print 'INFO: updating drum instrument (pitch)', (page<<16)+id, instrument.name, csoundInstId