diff options
author | James <olpc@localhost.localdomain> | 2007-01-29 12:03:33 (GMT) |
---|---|---|
committer | James <olpc@localhost.localdomain> | 2007-01-29 12:03:33 (GMT) |
commit | 9bf4b3ccc2684c108ec0228578911f4a8dc0b6b1 (patch) | |
tree | 2cafe11910c52d7ed3f4cb14282c88a2a35f1a2d /Util/CSoundNote.py | |
parent | 37d5b1c8b1248eb86db2dc8d0550569cd08b8535 (diff) | |
parent | 91597cc694d20ef5385805f26af8a1c829b1052c (diff) |
merged
Diffstat (limited to 'Util/CSoundNote.py')
-rw-r--r-- | Util/CSoundNote.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Util/CSoundNote.py b/Util/CSoundNote.py index 77ea459..6e3424d 100644 --- a/Util/CSoundNote.py +++ b/Util/CSoundNote.py @@ -3,13 +3,11 @@ from Util.CSoundClient import CSoundClient from Generation.GenerationConstants import GenerationConstants from Util.Clooper.SClient import * -from sugar import env def CSound_loadInstruments( ): - home_path = env.get_profile_path() + Config.PREF_DIR for instrumentSoundFile in Config.INSTRUMENTS.keys(): if instrumentSoundFile[0:3] == 'mic' or instrumentSoundFile[0:3] == 'lab': - fileName = home_path + '/' + instrumentSoundFile + fileName = Config.PREF_DIR + '/' + instrumentSoundFile else: fileName = Config.SOUNDS_DIR + "/" + instrumentSoundFile instrumentId = Config.INSTRUMENT_TABLE_OFFSET + Config.INSTRUMENTS[ instrumentSoundFile ].instrumentId @@ -83,7 +81,7 @@ def CSound_playNote( loopMode, secs_per_tick, Config.INSTRUMENTS[ instr ].loopEnd, Config.INSTRUMENTS[ instr ].crossDur ) else: - sc_scoreEvent15( 0, 'i', + sc_scoreEvent15( 'i', Config.INSTRUMENTS[ instr ].csoundInstrumentId + trackId * 0.01, onset * secs_per_tick, duration, |