diff options
author | Anish Mangal <anish@sugarlabs.org> | 2011-02-22 22:56:40 (GMT) |
---|---|---|
committer | Anish Mangal <anish@sugarlabs.org> | 2011-02-22 22:59:20 (GMT) |
commit | ef3edc36c1a1c06f19823bc7b99a880c48675dfa (patch) | |
tree | e386bac518eaee9b36141aee289a08ce69452e8e /data/sound/sequence | |
parent | d29d28ba5390048d5b170cc9ca410bab50012ea8 (diff) |
pep8 and pylint fixes for examples
Diffstat (limited to 'data/sound/sequence')
-rw-r--r-- | data/sound/sequence | 11 |
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() |