From 5c9a928310120a7ae95c6dde45b9f9ddc18c0c57 Mon Sep 17 00:00:00 2001 From: Oli Date: Tue, 19 Jun 2007 21:07:24 +0000 Subject: Edit keyboard recording... --- (limited to 'Util/CSoundClient.py') diff --git a/Util/CSoundClient.py b/Util/CSoundClient.py index f4c8d84..64e4521 100644 --- a/Util/CSoundClient.py +++ b/Util/CSoundClient.py @@ -256,7 +256,12 @@ class _CSoundClientPlugin: instrument_id_offset = 0 elif instrument.csoundInstrumentId == Config.INST_TIED and not tied and mode == 'mini': instrument_id_offset = 0 - elif instrument.csoundInstrumentId == Config.INST_TIED and mode == 'edit': + elif instrument.csoundInstrumentId == Config.INST_TIED and tied and mode == 'edit' and duration < 0: + duration = -1 + instrument_id_offset = 0 + elif instrument.csoundInstrumentId == Config.INST_TIED and tied and mode == 'edit' and duration > 0: + instrument_id_offset = 0 + elif instrument.csoundInstrumentId == Config.INST_TIED and not tied and mode == 'edit': instrument_id_offset = 100 if instrument.csoundInstrumentId == Config.INST_SIMP and mode == 'mini': @@ -283,6 +288,7 @@ class _CSoundClientPlugin: instrument.loopStart, instrument.loopEnd, instrument.crossDur ]) + print a return a -- cgit v0.9.1