diff options
author | Oli <olivier.belanger@umontreal.ca> | 2007-10-26 05:50:30 (GMT) |
---|---|---|
committer | Oli <olivier.belanger@umontreal.ca> | 2007-10-26 05:50:30 (GMT) |
commit | 9583b21dae8041c6544fb37de00ca42b034ebc98 (patch) | |
tree | 4c37d754cdaa5b332969f7fc30f0bba31025d006 /common/Util/Instruments.py | |
parent | 3aebf3dad1f5c137a5182cfe06b8edc778a5ddb9 (diff) |
miniT tabs cleanup, loop settings moved to Jam
Diffstat (limited to 'common/Util/Instruments.py')
-rw-r--r-- | common/Util/Instruments.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/Util/Instruments.py b/common/Util/Instruments.py index 17a0594..004fcca 100644 --- a/common/Util/Instruments.py +++ b/common/Util/Instruments.py @@ -1,3 +1,4 @@ +import os import common.Config as Config import common.Util.InstrumentDB as InstrumentDB @@ -175,10 +176,9 @@ _addInstrument( "plane", INST_SIMP, MID, 'concret', 0, 0, 0, 0.7 ) _addInstrument( "slap", INST_SIMP, MID, 'concret', 0, 0, 0, 0.7 ) try: - ifile = open(PREF_DIR + '/sounds_settings', 'r') - for line in ifile.readlines(): - list = line.split() - _addInstrument(list[0], int(list[1]), int(list[2]), list[3], list[4], float(list[5]), float(list[6]), float(list[7]), float(list[8])) + files = os.listdir(Config.SNDS_INFO_DIR) + for file in files: + instrumentDB.addInstrument(Config.SNDS_INFO_DIR + '/' + file) except: pass |