Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Util/CSoundNote.py
diff options
context:
space:
mode:
authorJames <olpc@localhost.localdomain>2007-01-29 12:03:33 (GMT)
committer James <olpc@localhost.localdomain>2007-01-29 12:03:33 (GMT)
commit9bf4b3ccc2684c108ec0228578911f4a8dc0b6b1 (patch)
tree2cafe11910c52d7ed3f4cb14282c88a2a35f1a2d /Util/CSoundNote.py
parent37d5b1c8b1248eb86db2dc8d0550569cd08b8535 (diff)
parent91597cc694d20ef5385805f26af8a1c829b1052c (diff)
merged
Diffstat (limited to 'Util/CSoundNote.py')
-rw-r--r--Util/CSoundNote.py6
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,