Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (22 sloc) 0.352 kB
from pyo import *
# Set Up Server
s = Server()
s.setMidiInputDevice(2)
s.boot()
s.start()
# Set Up MIDI
midi = Notein()
# ADSR
amp = MidiAdsr(midi['velocity'])
# Pitch
pitch = MToF(midi['pitch'])
# Table
wave = SquareTable()
wave.view()
# Osc
osc = Osc(wave, freq=pitch, mul=amp)
# FX
verb = Freeverb(osc).out()
### Go
osc.out()
s.gui(locals())
Jump to Line
Something went wrong with that request. Please try again.