From 53210daa96f6b7e51299a2eb15532cb296fab25d Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Fri, 19 Dec 2008 15:37:01 +0000 Subject: update lab&mic files on the fly --- (limited to 'common/Util/InstrumentDB.py') 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 -- cgit v0.9.1