Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/data/sound
diff options
context:
space:
mode:
Diffstat (limited to 'data/sound')
-rw-r--r--data/sound/playSine1
-rw-r--r--data/sound/playWave1
-rw-r--r--data/sound/sequence11
3 files changed, 6 insertions, 7 deletions
diff --git a/data/sound/playSine b/data/sound/playSine
index 216b4aa..c17e169 100644
--- a/data/sound/playSine
+++ b/data/sound/playSine
@@ -2,4 +2,3 @@ import pippy
pippy.sound.playSine(pitch=1000, amplitude=5000)
pippy.sound.audioOut()
-
diff --git a/data/sound/playWave b/data/sound/playWave
index 819ad4f..ee86aa6 100644
--- a/data/sound/playWave
+++ b/data/sound/playWave
@@ -2,4 +2,3 @@ import pippy
pippy.sound.playWave(sound='didjeridu', loop=True, duration=5)
pippy.sound.audioOut()
-
diff --git a/data/sound/sequence b/data/sound/sequence
index 3922e7a..06eac36 100644
--- a/data/sound/sequence
+++ b/data/sound/sequence
@@ -1,10 +1,11 @@
-import pippy, random
+import pippy
+import random
for i in range(25):
- pitch = random.randint(500,2000)
+ pitch = random.randint(500, 2000)
amplitude = 5000
duration = 0.1
- starttime = i * 0.1
- pippy.sound.playSine(pitch, amplitude, duration, starttime)
-pippy.sound.audioOut()
+ start_time = i * 0.1
+ pippy.sound.playSine(pitch, amplitude, duration, start_time)
+pippy.sound.audioOut()