Skip to content

Instantly share code, notes, and snippets.

@Kyoku57
Created August 20, 2020 19:56
Show Gist options
  • Save Kyoku57/a71f53234ce7590e43e04e2b79b4debe to your computer and use it in GitHub Desktop.
Save Kyoku57/a71f53234ce7590e43e04e2b79b4debe to your computer and use it in GitHub Desktop.
#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"
# use the note from MIDI keyboard to control autotune FX for the sample
control a, note: note
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment