Skip to content

Instantly share code, notes, and snippets.

#main live loop
live_loop :mainloop do
# use autotune fx
with_fx :autotuner, formant_ratio:1 do |a|
#use real time mode
use_real_time
# get note and velocity from my MIDI interface
note, velocity = sync "/midi:clavinova:0:1/note_on"
# play sample
sample "/Users/sebastien/Documents/samples/sushi.wav"