From 04fc5bfe0a89607bf34b3f475a93fdddc25f3969 Mon Sep 17 00:00:00 2001 From: Jorge Saldivar Date: Tue, 24 Aug 2010 14:26:50 +0000 Subject: Add tooltips to instruments --- (limited to 'common/Util/InstrumentDB.py') 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 -- cgit v0.9.1