def play(): oort.wait(random.choice(range(10))*0.1) while playing: dur = 2 + random.randint(-10, 10)*.05 w.dur = dur*random.randint(2,4) w.pitch = oort.mtof(random.choice(scale)) w.play() oort.wait(dur)
def loop(): start = oort.START() start.amp = 1000 while playing: dur = randint(100, 200) * 0.001 start.dur=dur*3 start.pitch=oort.pchcps(oort.mtof(choice(chord))) start.play() oort.wait(dur)