Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorolipet <olivier.belanger@umontreal.ca>2007-08-23 22:23:07 (GMT)
committer olipet <olivier.belanger@umontreal.ca>2007-08-23 22:23:07 (GMT)
commita961cf921549ccde16b4114b56de9e0e1f80a80c (patch)
tree2b929d28bd8f1f2601b062ae4138592a3120a970
parentf1ab961a9595c2fe73a5620b462c24543703354a (diff)
csound now connected
-rw-r--r--data/sound/playWave2
-rwxr-xr-xsound/snd.py11
2 files changed, 2 insertions, 11 deletions
diff --git a/data/sound/playWave b/data/sound/playWave
index 9988ac3..659710a 100644
--- a/data/sound/playWave
+++ b/data/sound/playWave
@@ -1,6 +1,6 @@
import sys
sys.path.append('/usr/share/activities/Pippy.activity/sound')
from snd import *
-playWave(name='didjeridu', loop=True, duration=5)
+playWave(sound='didjeridu', loop=True, duration=5)
audioOut()
diff --git a/sound/snd.py b/sound/snd.py
index 3525685..3e94753 100755
--- a/sound/snd.py
+++ b/sound/snd.py
@@ -113,14 +113,5 @@ def audioOut():
csd.write("\n</CsScore>\n")
csd.write("\n</CsoundSynthesizer>")
csd.close()
-
- f = open(path + '/temp.csd', 'r')
- for line in f.readlines():
- print line[0:-1]
- #cs = csnd.Csound()
- #cs.Compile(path + '/temp.csd')
- #perf = csnd.CsoundPerformanceThread(cs)
- #perf.Play()
-
-
+ os.system('csound ' + path + '/temp.csd')