You should be able to send midi to a DAW using this code:
#Sending midi with Sonic Pi
live_loop :channel1 do
midi 62, channel: 1
sleep 0.5
end
live_loop :channel2 do
midi 74, channel: 2
sleep 0.75
end
I´m using Sonic Pi as a sequencer for Ableton live and Reaktor and it works fine.
When using it with Ableton, I have to open Ableton first, then Sonic Pi for the midi connection to work.
Also check the ‘language’ documentation on midi in the help section of Sonic Pi.