Ok a solution that works well (for me )
easy via http://www.breakawayone.com/downloads/ itโs free
# Audio from Helm and fx applied on it
#
# http://www.breakawayone.com/downloads/
use_real_time
with_fx :echo do
live_audio :fromHelm
end
live_loop :drums do
sample :bd_ada
sleep 1
end
# loopmidi to send midi notes to Helm
# after we can change the parameters from Helm and sonic pi is able to record them and
# apply an echo effect see above live_audio
live_loop :midiToHelm, sync: "/live_loop/drums" do
midi [:e3, :e2].tick, port: "loopmidi-port-01"
sleep 4
end
live_loop :hits_hats, sync: "/live_loop/drums" do
sample :drum_cymbal_closed, amp: [0.5, 0.75, 0.45, 1].tick
sleep 0.25
end