Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Config.py
diff options
context:
space:
mode:
authoramartin <olpc@xo-05-28-21.localdomain>2007-08-26 11:40:29 (GMT)
committer amartin <olpc@xo-05-28-21.localdomain>2007-08-26 11:40:29 (GMT)
commit87defb862218ca2e4d706e1affa200a6cae2032e (patch)
tree06fc2af30b193d180a571e4a3bc81a65733a8f3c /Config.py
parent6a209f15052e84430279a5fa66c2d661513c067f (diff)
Jam
Diffstat (limited to 'Config.py')
-rw-r--r--Config.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Config.py b/Config.py
index 75334fa..4743088 100644
--- a/Config.py
+++ b/Config.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
import os
+import Util.InstrumentDB as InstrumentDB
QUICKLOAD = os.path.isfile("QUICKLOAD") # skip loading inessential comenents to speed things up
@@ -98,11 +99,14 @@ INST_PERC = 5021
CATEGORIES = ['all','animals','concret','keyboard','people','percussions','strings','winds', 'mysounds']
+instrumentDB = InstrumentDB.getRef()
+
_nextInstrumentId = [0]
INSTRUMENTS = {}
def _addInstrument( name, csoundInstrumentId, instrumentRegister, soundClass, category, loopStart, loopEnd, crossDur, kit = None ):
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 ] )
_nextInstrumentId[0] += 1