File: sequence

package info (click to toggle)
sugar-pippy-activity 25-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 572 kB
  • ctags: 234
  • sloc: python: 1,237; makefile: 15
file content (10 lines) | stat: -rw-r--r-- 231 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
import pippy, random

for i in range(25):
    pitch = random.randint(500,2000)
    amplitude = 5000
    duration = 0.1
    starttime = i * 0.1
    pippy.sound.playSine(pitch, amplitude, duration, starttime)
pippy.sound.audioOut()