diff options
author | jaberg <james@localhost.localdomain> | 2007-01-08 06:38:26 (GMT) |
---|---|---|
committer | jaberg <james@localhost.localdomain> | 2007-01-08 06:38:26 (GMT) |
commit | 17c2220bf0fcd29eb2d16fbc3a3b29b0b39103fc (patch) | |
tree | 236c2db1512cd42231da118629a06e0acdf1c6a6 /Util/NoteLooper.py | |
parent | 2dc31155018d0a09b561a2dc8b9a24e3ed7ce047 (diff) | |
parent | 10621ebbb7a9a63bd738626df28f103f3ce17b3f (diff) |
merged
Diffstat (limited to 'Util/NoteLooper.py')
-rw-r--r-- | Util/NoteLooper.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Util/NoteLooper.py b/Util/NoteLooper.py index 1c99cfd..bcb8e4a 100644 --- a/Util/NoteLooper.py +++ b/Util/NoteLooper.py @@ -79,24 +79,24 @@ class NoteLooper: if pitch in GenerationConstants.DRUMPITCH: pitch = GenerationConstants.DRUMPITCH[ pitch ] - iflag = CSoundConstants.DRUM1INSTRUMENTS[ pitch ] + iflag = Config.DRUM1INSTRUMENTS[ pitch ] pitch = 1 else: iflag = self.inst[ trackId ] pitch = GenerationConstants.TRANSPOSE[ pitch - 24 ] # condition for tied notes - if CSoundConstants.INSTRUMENTS[ iflag ].csoundInstrumentId == 101 and tied and fullDuration: + if Config.INSTRUMENTS[ iflag ].csoundInstrumentID == 101 and tied and fullDuration: duration= -1.0 # condition for overlaped notes - if CSoundConstants.INSTRUMENTS[ iflag ].csoundInstrumentId == 102 and overlap: + if Config.INSTRUMENTS[ iflag ].csoundInstrumentID == 102 and overlap: duration += 1.0 attack = max( 0.002, duration * attack) decay = max( 0.002, duration * decay) - rval = CSoundConstants.PLAY_NOTE_COMMAND_MINUS_DELAY % \ - ( CSoundConstants.INSTRUMENTS[ iflag ].csoundInstrumentId, + rval = Config.PLAY_NOTE_COMMAND_MINUS_DELAY % \ + ( Config.INSTRUMENTS[ iflag ].csoundInstrumentID, trackId, '%f', #delay, duration, @@ -104,7 +104,7 @@ class NoteLooper: reverbSend, amplitude, pan, - CSoundConstants.INSTRUMENT_TABLE_OFFSET + CSoundConstants.INSTRUMENTS[ iflag ].instrumentId, + Config.INSTRUMENT_TABLE_OFFSET + Config.INSTRUMENTS[ iflag ].instrumentID, attack, decay, filterType, filterCutoff ) |