diff options
author | Jorge Saldivar <jsaldivar@paraguayeduca.org> | 2010-08-24 14:26:50 (GMT) |
---|---|---|
committer | Jorge Saldivar <jsaldivar@paraguayeduca.org> | 2010-08-24 14:26:50 (GMT) |
commit | 04fc5bfe0a89607bf34b3f475a93fdddc25f3969 (patch) | |
tree | 6b398714997e4050dd78f7eb549a0ddce7db95dd /common/Util/InstrumentDB.py | |
parent | 1d0baebcfd5798028602f80619643f17ce04721d (diff) |
Add tooltips to instruments
Diffstat (limited to 'common/Util/InstrumentDB.py')
-rw-r--r-- | common/Util/InstrumentDB.py | 7 |
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 |