diff options
author | James <olpc@xo-05-28-3A.localdomain> | 2007-07-18 22:54:27 (GMT) |
---|---|---|
committer | James <olpc@xo-05-28-3A.localdomain> | 2007-07-18 22:54:27 (GMT) |
commit | 610b262bb15f09ae93faa5291f1190a9e0fafa6a (patch) | |
tree | 7816015d9c7bd5c91620e4b37fa92ad42a0a7a20 /Util | |
parent | 350b3270ad715b6e6aa6fbd7a22e3aeae44504ac (diff) |
partial upgrade to instrument db
Diffstat (limited to 'Util')
-rw-r--r-- | Util/Instrument.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Util/Instrument.py b/Util/Instrument.py index 3e4db27..159b736 100644 --- a/Util/Instrument.py +++ b/Util/Instrument.py @@ -19,8 +19,9 @@ class Instrument: def __init__( self, name, csoundInstrumentName, registerName, category, loopStart, loopEnd, crossDur, wav, img ): self.name = name self.instrumentId = len(INST) + self.csoundInstrumentName = csoundInstrumentName self.csoundInstrumentId = CSOUND_INSTRUMENT[csoundInstrumentName] - self.instrumentRegister = self.REGISTER[registerName] + self.register = registerName self.category = category self.loopStart = loopStart self.loopEnd = loopEnd @@ -170,6 +171,13 @@ else: Instrument( "guit2", 'inst_tied', 'mid', 'strings', .33, 1.1583, .02 , None, None) Instrument( "plane", 'inst_simp', 'mid', 'concret', 0, 0, 0 , None, None) Instrument( "slap", 'inst_simp', 'mid', 'concret', 0, 0, 0 , None, None) +INST_byId = {} +for i in INST: + INST_byId[ INST[i].instrumentId] = INST[i] + +KIT_ELEMENT = 24 * [0] +for i in range(0,13): + KIT_ELEMENT += 2 * [i] DRUM = {} drum_load_dynamic = 0 |