Open Audio MIDI Setup (located in Applications=>Utilities)
Select Midi Studio window from the Window Menu if it is not visible
Double Click on IAC Driver icon
Click the + sign below the (empty /) list of ports
Double click the newlyt created port “IAC Bus 1” and rename it spconnect
click the Apply Button
Open Sonic Pi, or if it is already open, open the IO prefs and click Reset MIDI
You should see iac_driver_spconnect listed as a midi port.
Open Midi Player X
Select the arrow beside Built in GM Synth, and from the popup list select IAC Driver spconnect
Now play a midi file in the Player and you should see the incoming cues in the Sonic Pi cues log.
Here is a simple program to play what is coming in.
live_loop :midi_in do
n,v = sync "/midi/iac_driver_spconnect/*/*/note_on"
play n,release: 0.1,amp: v/127.0 #gives each note a duration of 0.1
I haven’t time to do photos just now. If you are still having problems I can add some later today.
I’ve made a video to illustrate the process