Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/data/sound/sequence
blob: 1577c9d0d1e800bf2c41b33ce8a32839d900cd15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import sys
import random
from sugar.activity.activity import get_bundle_path
sys.path.append(get_bundle_path() + '/sound')
from sound import *

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