Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common/Util/CSoundNote.py
diff options
context:
space:
mode:
authorOli <olivier.belanger@umontreal.ca>2007-10-19 08:08:02 (GMT)
committer Oli <olivier.belanger@umontreal.ca>2007-10-19 08:08:02 (GMT)
commit3e9a586f404b70cda362cf888653de9c940fd849 (patch)
tree427a99619ebf947600a3cc2c0ef9437fb2953f09 /common/Util/CSoundNote.py
parent9307df223f0be4193a21fddd48e32ce15b9ed4ef (diff)
switch to instrumentDB
Diffstat (limited to 'common/Util/CSoundNote.py')
-rw-r--r--common/Util/CSoundNote.py5
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