diff options
author | Oli <olpc@localhost.localdomain> | 2007-03-05 08:58:15 (GMT) |
---|---|---|
committer | Oli <olpc@localhost.localdomain> | 2007-03-05 08:58:15 (GMT) |
commit | 41f7c5caddcb579abfdeb8c071d964145eb9e42f (patch) | |
tree | c2119f9f6b87097d3e3169391c485a01924f2509 /Util/CSoundClient.py | |
parent | 6bd5a3bdfbb5b2e134e335e7aa7df59d52c82e45 (diff) |
sounds vs instruments bug fix
Diffstat (limited to 'Util/CSoundClient.py')
-rw-r--r-- | Util/CSoundClient.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Util/CSoundClient.py b/Util/CSoundClient.py index 33e7359..e4d68a2 100644 --- a/Util/CSoundClient.py +++ b/Util/CSoundClient.py @@ -224,9 +224,11 @@ class _CSoundClientPlugin: instrument_offset = 100 if instrument.csoundInstrumentId == Config.INST_SIMP and mode == 'mini': - duration = 0 - elif instrument.csoundInstrumentId == Config.INST_SIMP and mode == 'edit': - duration = duration + instrument_offset = 0 + elif instrument.csoundInstrumentId == Config.INST_SIMP and mode == 'edit' and instrument.soundClass != 'drum': + instrument_offset = 100 + else: + instrument_offset = 0 a = array.array('f') a.extend( [ |