This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
live_loop :beat do | |
8.times do | |
sample :bd_fat | |
sleep 0.5 | |
sample :drum_heavy_kick | |
sleep 0.5 | |
end | |
end | |
live_loop :ambiance do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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" |