diff options
author | Nathanaël Lécaudé <natcl@hotmail.com> | 2007-09-10 19:41:40 (GMT) |
---|---|---|
committer | Nathanaël Lécaudé <natcl@hotmail.com> | 2007-09-10 19:41:40 (GMT) |
commit | 2cc81cbe789bce99a2109f4a7183f7b693623412 (patch) | |
tree | dff3051d91d3f819773355c873f121ccb376a330 | |
parent | f1dfa06bdbbfbb7f98792b749814e1ff3fb3aa73 (diff) |
Changed sounds path
-rwxr-xr-x | sound/sound.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/sound.py b/sound/sound.py index 8a4060d..e008136 100755 --- a/sound/sound.py +++ b/sound/sound.py @@ -149,7 +149,7 @@ def playPluck( pitch=100, amplitude=5000, duration=2, starttime=0, pitch_envelop def playWave(sound='horse', pitch=1, amplitude=1, loop=False, duration=1, starttime=0, pitch_envelope='default', amplitude_envelope='default'): """Play a wave file (sound = ['horse'], pitch = [1], amplitude = [1], loop = [False], duration = [1], starttime = [0], pitch_envelope=['default'], amplitude_envelope=['default'])""" - fullname = '/usr/share/activities/TamTam.activity/Resources/Sounds/' + str(sound) + fullname = '/usr/share/activities/TamTamEdit.activity/Resources/Sounds/' + str(sound) if loop == False: lp = 0 else: lp = 1 @@ -172,7 +172,7 @@ def playWave(sound='horse', pitch=1, amplitude=1, loop=False, duration=1, startt scorelines.append('i9 %f %f "%s" %s %s %s %s %s\n' % (float(starttime), float(duration), fullname, str(pitch), str(amplitude), str(lp), str(pitenv), str(ampenv))) def getSoundList(): - return sorted(os.listdir('/usr/share/activities/TamTam.activity/Resources/Sounds/')) + return sorted(os.listdir('/usr/share/activities/TamTamEdit.activity/Resources/Sounds/')) def audioOut(file=None): """Compile a .csd file and start csound to run it. If a string is given as argument, it write a wave file on disk instead of sending sound to hp. (file = [None])""" |