diff options
author | Oli <olivier.belanger@umontreal.ca> | 2007-10-19 08:08:02 (GMT) |
---|---|---|
committer | Oli <olivier.belanger@umontreal.ca> | 2007-10-19 08:08:02 (GMT) |
commit | 3e9a586f404b70cda362cf888653de9c940fd849 (patch) | |
tree | 427a99619ebf947600a3cc2c0ef9437fb2953f09 /common/Util/CSoundNote.py | |
parent | 9307df223f0be4193a21fddd48e32ce15b9ed4ef (diff) |
switch to instrumentDB
Diffstat (limited to 'common/Util/CSoundNote.py')
-rw-r--r-- | common/Util/CSoundNote.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/Util/CSoundNote.py b/common/Util/CSoundNote.py index 535084d..a188a62 100644 --- a/common/Util/CSoundNote.py +++ b/common/Util/CSoundNote.py @@ -1,4 +1,5 @@ import common.Config as Config +import common.Util.InstrumentDB as InstrumentDB class CSoundNote : def __init__( self, @@ -8,7 +9,7 @@ class CSoundNote : pan, duration, trackId, - instrumentId = Config.INSTRUMENTS["flute"].instrumentId, + instrumentId = 1, #self.instrumentDB.instNamed["flute"].instrumentId, attack = 0.005, decay = 0.098, reverbSend = 0.1, @@ -18,6 +19,8 @@ class CSoundNote : mode = 'edit', instrumentId2 = -1 ): + self.instrumentDB = InstrumentDB.getRef() + self.onset = onset self.pitch = pitch self.amplitude = amplitude |