Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/data/sound/sequence
diff options
context:
space:
mode:
authorAnish Mangal <anish@sugarlabs.org>2011-02-22 22:56:40 (GMT)
committer Anish Mangal <anish@sugarlabs.org>2011-02-22 22:59:20 (GMT)
commitef3edc36c1a1c06f19823bc7b99a880c48675dfa (patch)
treee386bac518eaee9b36141aee289a08ce69452e8e /data/sound/sequence
parentd29d28ba5390048d5b170cc9ca410bab50012ea8 (diff)
pep8 and pylint fixes for examples
Diffstat (limited to 'data/sound/sequence')
-rw-r--r--data/sound/sequence11
1 files changed, 6 insertions, 5 deletions
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()