Osc-MIDI to Ableton

Hi… I’ve tried to interface Sonic with Ableton but am having trouble. I use a MacBook M1, running Sonic Pi 5 Beta trying to OSC btw Ableton. i’ve setup an IAC driver on bus1 set to device online in the MIDI Studio and also set Ableton setting to Bus1 with a midi track reading from input… hmmm not sure put i then try this…use_midi_defaults port: “iac_driver_iac_bus_1”, channel: 1

live_loop :send_midi do
midi_note_on :c3
sleep 0.5
midi_note_off :c3
sleep 1
end

and got zero :(. can anyone advise please.? Thanks in_threaders.

Hi,
Try this:

live_loop :whatever do
midi 60, channel: 1, port: “iac_driver_bus_1”, sustain: 0.5
sleep 1
end

You don’t have to specify note_on/note_off etc.

Thanks for the reply Bohrbug. I tried your approach but no joy. I believe the code is fine but despite several attempts, I cannot get things happening. Happy coding… and I’ll keep searching for something that works.