I have done this before sending audio from Sonic Pi to Ableton via Loopback. The steps that worked for me are:
-
In Loopback create a new virtual device. Set Sonic Pi as the source. In the Channel Mapping section, select “Manual” and add the number of channels you would like to use.
-
In your DAW, set your newly created Loopback device as the audio input. Create the individual tracks you need, and assign them to different channels.
-
Before opening Sonic Pi, in system preferences select your Loopback device as the sound output device.
4.In Sonic Pi, use the sound_out
or sound_out_stereo
FX block to route your audio out of Sonic Pi. Assign specific channels using the output:
opt.
Below is a simple example:
live_loop :one do
with_fx :sound_out, output: 1 do
sample :bd_808
sleep 1
end
end
live_loop :two do
with_fx :sound_out, output: 2 do
sleep 1
sample :elec_mid_snare
sleep 1
end
end