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-00-CE-12.localdomain>2007-07-09 16:32:24 (GMT)
committer amartin <olpc@xo-00-CE-12.localdomain>2007-07-09 16:32:24 (GMT)
commitde2144782e4c1b4e9c9b66999434bcda31db6302 (patch)
tree9d8acac561d63c8fa8bb5ab3dd3592a3bdd1e393 /Config.py
parent3b9dad1c7941ae8b56077c51e6d7a6a393b8c9cc (diff)
quickload
Diffstat (limited to 'Config.py')
-rw-r--r--Config.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Config.py b/Config.py
index 73871bf..44ee0e7 100644
--- a/Config.py
+++ b/Config.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
import os
+QUICKLOAD = FALSE # skip loading inessential comenents to speed things up
SugarMode = True
try:
@@ -89,8 +90,9 @@ CATEGORIES = ['all','animals','concret','electronic','keyboard','people','percus
_nextInstrumentId = [0]
INSTRUMENTS = {}
def _addInstrument( name, csoundInstrumentId, instrumentRegister, soundClass, category, loopStart, loopEnd, crossDur, kit = None ):
- INSTRUMENTS[name] = Instrument( name, _nextInstrumentId[0], csoundInstrumentId, instrumentRegister, soundClass, category, loopStart, loopEnd, crossDur, kit )
- _nextInstrumentId[0] += 1
+ 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 )
+ _nextInstrumentId[0] += 1
_addInstrument( "mic1", INST_TIED, MID, 'melo', 'mic', .01, .99, .01 )
_addInstrument( "mic2", INST_TIED, MID, 'melo', 'mic', .01, .99, .01 )