diff options
author | Oli <olpc@localhost.localdomain> | 2007-03-04 08:22:41 (GMT) |
---|---|---|
committer | Oli <olpc@localhost.localdomain> | 2007-03-04 08:22:41 (GMT) |
commit | b4967930d9c5941da2e49f48d98aca6e296bfe3b (patch) | |
tree | 41b00df2b04279b45cfe83673930da99c374d84e /Util/CSoundClient.py | |
parent | ade82f5d44d11fdd535301c4d4bab4655be7f8ae (diff) |
SynthLab works and is compatible with mini and edit
Diffstat (limited to 'Util/CSoundClient.py')
-rw-r--r-- | Util/CSoundClient.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Util/CSoundClient.py b/Util/CSoundClient.py index 9374d13..c17d3a1 100644 --- a/Util/CSoundClient.py +++ b/Util/CSoundClient.py @@ -50,6 +50,11 @@ class _CSoundClientPlugin: instrumentId = Config.INSTRUMENT_TABLE_OFFSET + int(fileName[-1]) + 6 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 + sc_inputMessage(Config.CSOUND_LOAD_INSTRUMENT % (instrumentId, fileName)) + def load_instruments( self ): for instrumentSoundFile in Config.INSTRUMENTS.keys(): if instrumentSoundFile[0:3] == 'mic' or instrumentSoundFile[0:3] == 'lab': |