diff options
author | Oli <olivier.belanger@umontreal.ca> | 2007-10-26 05:50:30 (GMT) |
---|---|---|
committer | Oli <olivier.belanger@umontreal.ca> | 2007-10-26 05:50:30 (GMT) |
commit | 9583b21dae8041c6544fb37de00ca42b034ebc98 (patch) | |
tree | 4c37d754cdaa5b332969f7fc30f0bba31025d006 /common/Util/CSoundClient.py | |
parent | 3aebf3dad1f5c137a5182cfe06b8edc778a5ddb9 (diff) |
miniT tabs cleanup, loop settings moved to Jam
Diffstat (limited to 'common/Util/CSoundClient.py')
-rw-r--r-- | common/Util/CSoundClient.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/Util/CSoundClient.py b/common/Util/CSoundClient.py index b3729d8..b8919eb 100644 --- a/common/Util/CSoundClient.py +++ b/common/Util/CSoundClient.py @@ -101,7 +101,10 @@ class _CSoundClientPlugin: def load_instrument(self, inst): if not inst in loadedInstruments: - fileName = Config.SOUNDS_DIR + "/" + inst + if inst[0:3] == 'mic' or inst[0:3] == 'lab' or self.instrumentDB.instNamed[inst].category == 'mysounds': + fileName = Config.SNDS_DIR + '/' + inst + else: + fileName = Config.SOUNDS_DIR + "/" + inst instrumentId = Config.INSTRUMENT_TABLE_OFFSET + self.instrumentDB.instNamed[ inst ].instrumentId sc_inputMessage( Config.CSOUND_LOAD_INSTRUMENT % (instrumentId, fileName) ) loadedInstruments.append(inst) |