Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathanaël Lécaudé <natcl@hotmail.com>2007-10-12 19:38:48 (GMT)
committer Nathanaël Lécaudé <natcl@hotmail.com>2007-10-12 19:38:48 (GMT)
commit661c0bc1d2f4b4de744c06c4d810efbbe488b731 (patch)
treea6d5800b5aa3871b3318929a4c8c3aff2116c039
parentb873c1172c907b8424bab8913bfd121fe61d09d8 (diff)
path fix for sounds
-rwxr-xr-xsound/sound.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/sound.py b/sound/sound.py
index 7108571..fd3ee4d 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/tamtam/Sounds/' + str(sound)
+ fullname = '/usr/share/activities/TamTamEdit.activity/common/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/TamTamEdit.activity/Resources/Sounds/'))
+ return sorted(os.listdir('/usr/share/activities/TamTamEdit.activity/common/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])"""