Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Util/CSoundClient.py
diff options
context:
space:
mode:
authorOli <olivier.belanger@umontreal.ca>2007-07-06 07:58:48 (GMT)
committer Oli <olivier.belanger@umontreal.ca>2007-07-06 07:58:48 (GMT)
commit0c61bdf39093cc9687a082f86bc6a3e964a6b56c (patch)
treede15431e62227a5ec5b097cffb67cd3e5dea7ef0 /Util/CSoundClient.py
parent3c0791e05fcef3fa11dc8a8c71e68dfeb4bcd6dc (diff)
mic and lab recording in good slots
Diffstat (limited to 'Util/CSoundClient.py')
-rw-r--r--Util/CSoundClient.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Util/CSoundClient.py b/Util/CSoundClient.py
index 9afae70..00aa452 100644
--- a/Util/CSoundClient.py
+++ b/Util/CSoundClient.py
@@ -64,12 +64,12 @@ class _CSoundClientPlugin:
def load_mic_instrument( self, inst ):
fileName = Config.PREF_DIR + '/' + inst
- instrumentId = Config.INSTRUMENT_TABLE_OFFSET + int(fileName[-1]) + 6
+ instrumentId = Config.INSTRUMENT_TABLE_OFFSET + Config.INSTRUMENTS[inst].instrumentId
sc_inputMessage(Config.CSOUND_LOAD_INSTRUMENT % (instrumentId, fileName))
def load_synth_instrument( self, inst ):
fileName = Config.PREF_DIR + '/' + inst
- instrumentId = Config.INSTRUMENT_TABLE_OFFSET + int(fileName[-1]) + 85
+ instrumentId = Config.INSTRUMENT_TABLE_OFFSET + Config.INSTRUMENTS[inst].instrumentId
sc_inputMessage(Config.CSOUND_LOAD_INSTRUMENT % (instrumentId, fileName))
def load_instruments( self ):