Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common/Util/InstrumentDB.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2008-12-19 15:37:01 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2008-12-19 23:50:58 (GMT)
commit53210daa96f6b7e51299a2eb15532cb296fab25d (patch)
tree23b40b55ddae9a79a5ca095131ac159f7ba3bc7f /common/Util/InstrumentDB.py
parentcbf35672f9aa09bbae141b6599c27d9de8b0e57c (diff)
update lab&mic files on the fly
Diffstat (limited to 'common/Util/InstrumentDB.py')
-rw-r--r--common/Util/InstrumentDB.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/Util/InstrumentDB.py b/common/Util/InstrumentDB.py
index 68928a5..0958989 100644
--- a/common/Util/InstrumentDB.py
+++ b/common/Util/InstrumentDB.py
@@ -9,6 +9,7 @@ class Instrument:
def __init__(self, id):
self.instrumentId = id
self.kitStage = False
+ self.volatile = None
# build an Instrument instance from argument list
def loadFromArgs( self, name, csoundInstrumentId, register, loopStart,
@@ -55,11 +56,13 @@ class InstrumentDB:
# TEMP? add instrument from args
def addInstrumentFromArgs( self, name, csoundInstrumentId, register, loopStart,
- loopEnd, crossDur, ampScale, kit, wav, img, category, kitStage = False ):
+ loopEnd, crossDur, ampScale, kit, wav, img, category,
+ kitStage = False, volatile = False ):
i = Instrument(len(self.inst))
self.inst += [ i ]
i.loadFromArgs( name, csoundInstrumentId, register, loopStart, loopEnd, crossDur, ampScale, kit, wav, img, category )
i.kitStage = kitStage
+ if volatile: i.volatile = 0
self.instNamed[ i.name ] = i
self.instId[i.instrumentId] = i