From eb4cff0b7c37797bf6d59fd710d672781f173df5 Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Thu, 16 Apr 2009 17:10:32 +0000 Subject: Fixes in loopUpdate() --- 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 -- cgit v0.9.1