Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TamTamMini.activity
diff options
context:
space:
mode:
authorOli <olivier.belanger@umontreal.ca>2007-10-15 07:00:12 (GMT)
committer Oli <olivier.belanger@umontreal.ca>2007-10-15 07:00:12 (GMT)
commit488586eb9dbe86a18a48b17c09c918f1410c3b54 (patch)
tree240e6a94d51a5cc288e6e9d493effa1eb14cf089 /TamTamMini.activity
parent10cd9c0bee24f19ff7c6585c610b2fa7b014ddb2 (diff)
miniT minor fix
Diffstat (limited to 'TamTamMini.activity')
-rw-r--r--TamTamMini.activity/Config.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/TamTamMini.activity/Config.py b/TamTamMini.activity/Config.py
index 62aab60..6d164bb 100644
--- a/TamTamMini.activity/Config.py
+++ b/TamTamMini.activity/Config.py
@@ -78,7 +78,7 @@ for i in range(0,13):
KIT_ELEMENT = tuple(KIT_ELEMENT)
class Instrument:
- def __init__( self, name, instrumentId, csoundInstrumentId, instrumentRegister, soundClass, category, loopStart, loopEnd, crossDur, kit = None ):
+ def __init__( self, name, instrumentId, csoundInstrumentId, instrumentRegister, soundClass, category, loopStart, loopEnd, crossDur, ampScale = 1, kit = None ):
self.name = name
self.instrumentId = instrumentId
self.csoundInstrumentId = csoundInstrumentId
@@ -88,6 +88,7 @@ class Instrument:
self.loopStart = loopStart
self.loopEnd = loopEnd
self.crossDur = crossDur
+ self.ampScale = ampScale
self.kit = kit
#print (self.name, self.instrumentId, self.csoundInstrumentId, self.instrumentRegister, self.soundClass, self.category, self.loopStart, self.loopEnd, self.crossDur)
@@ -108,9 +109,10 @@ instrumentDB = InstrumentDB.getRef()
_nextInstrumentId = [0]
INSTRUMENTS = {}
def _addInstrument( name, csoundInstrumentId, instrumentRegister, soundClass, category, loopStart, loopEnd, crossDur, kit = None ):
+ ampScale = 1
if not QUICKLOAD or name[0:4] == "drum" or name in ["flute", "kalimba"]: # quick load
- INSTRUMENTS[name] = Instrument( name, _nextInstrumentId[0], csoundInstrumentId, instrumentRegister, soundClass, category, loopStart, loopEnd, crossDur, kit )
- instrumentDB.addInstrumentFromArgs( name, name, instrumentRegister, loopStart, loopEnd, crossDur, name, FILES_DIR+"/Images/"+name+".png", [ category ] )
+ INSTRUMENTS[name] = Instrument( name, _nextInstrumentId[0], csoundInstrumentId, instrumentRegister, soundClass, category, loopStart, loopEnd, crossDur, ampScale, kit )
+ instrumentDB.addInstrumentFromArgs( name, name, instrumentRegister, loopStart, loopEnd, crossDur, ampScale, name, FILES_DIR+"/Images/"+name+".png", [ category ] )
_nextInstrumentId[0] += 1