diff options
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 |