A synth in less than 300 characters.
import time
from random import randrange as r
from supriya import default as d, Server
s = Server().boot()
s.add_synthdefs(d)
s.sync()
while 1:
n = s.add_synth(d, frequency=pow(2.0, (r(60, 97, 2) - 69) / 12) * 440.0)
time.sleep(3)
n.set(gate=0)
about 1 year ago