Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/sound/playSineWave6
-rw-r--r--data/sound/sequence12
-rw-r--r--data/sound/sndInfo4
3 files changed, 22 insertions, 0 deletions
diff --git a/data/sound/playSineWave b/data/sound/playSineWave
new file mode 100644
index 0000000..8cda42e
--- /dev/null
+++ b/data/sound/playSineWave
@@ -0,0 +1,6 @@
+import sys
+sys.path.append('/usr/share/activities/Pippy.activity/sound')
+from snd import *
+playSine()
+audioOut()
+
diff --git a/data/sound/sequence b/data/sound/sequence
new file mode 100644
index 0000000..f870094
--- /dev/null
+++ b/data/sound/sequence
@@ -0,0 +1,12 @@
+import sys
+import random
+sys.path.append('/usr/share/activities/Pippy.activity/sound')
+from snd import *
+for i in range(25):
+ pitch = random.randint(500,2000)
+ amp = 5000
+ dur = 0.1
+ starttime = i * 0.1
+ playSine(pitch, amp, dur, starttime)
+audioOut()
+
diff --git a/data/sound/sndInfo b/data/sound/sndInfo
new file mode 100644
index 0000000..f40accb
--- /dev/null
+++ b/data/sound/sndInfo
@@ -0,0 +1,4 @@
+import sys
+sys.path.append('/usr/share/activities/Pippy.activity/sound')
+from snd import *
+print playSine.__doc__