Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lisabaut/4de72279d169f5a7d51f4300ed6354a5 to your computer and use it in GitHub Desktop.
Save lisabaut/4de72279d169f5a7d51f4300ed6354a5 to your computer and use it in GitHub Desktop.
with_fx :record, buffer: :foo2 do
8.times do
use_real_time
note, velocity = sync "/midi/usb_keystation_49e/0/1/note_on"
synth :blade, note: note unless velocity == 0
end
end
live_loop :blu do
sleep 5
sample buffer(:foo2)
end
with_fx :record, buffer: :bar do
8.times do
use_real_time
note, velocity = sync "/midi/usb_keystation_49e/0/1/note_on"
synth :dsaw, note: note unless velocity == 0
end
end
live_loop :bla do
sleep 5
sample buffer(:bar)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment