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:
Diffstat (limited to 'common/Util/InstrumentDB.py')
-rw-r--r--common/Util/InstrumentDB.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/Util/InstrumentDB.py b/common/Util/InstrumentDB.py
index 9e373c9..ac72a19 100644
--- a/common/Util/InstrumentDB.py
+++ b/common/Util/InstrumentDB.py
@@ -12,7 +12,7 @@ class Instrument:
# build an Instrument instance from argument list
def loadFromArgs( self, name, csoundInstrumentId, register, loopStart,
- loopEnd, crossDur, ampScale, kit, wav, img, category ):
+ loopEnd, crossDur, ampScale, kit, wav, img, category, nameTooltip = "" ):
self.name = name
self.csoundInstrumentId = csoundInstrumentId
self.instrumentRegister = register
@@ -24,6 +24,7 @@ class Instrument:
self.wav = wav
self.img = img
self.category = category
+ self.nameTooltip = nameTooltip
# build an Instrument instance by parsing a file
def loadFromPath(self, path ):
@@ -56,10 +57,10 @@ class InstrumentDB:
# TEMP? add instrument from args
def addInstrumentFromArgs( self, name, csoundInstrumentId, register, loopStart,
loopEnd, crossDur, ampScale, kit, wav, img, category,
- kitStage = False, volatile = False ):
+ kitStage = False, volatile = False, nameTooltip = "" ):
i = Instrument(len(self.inst))
self.inst += [ i ]
- i.loadFromArgs( name, csoundInstrumentId, register, loopStart, loopEnd, crossDur, ampScale, kit, wav, img, category )
+ i.loadFromArgs( name, csoundInstrumentId, register, loopStart, loopEnd, crossDur, ampScale, kit, wav, img, category, nameTooltip )
i.kitStage = kitStage
if volatile: i.volatile = 0
self.instNamed[ i.name ] = i