Auto-connect network MIDI session on a Mac

Hi,  I've been using the Mio 10 and Mio 4 for a while now.  I have just reworked my live rig with the Mio 4 and am using network midi from the Mio to my Macbook Pro (all latest software, but still High Sierra).  I am using all 4 network midi ports.  The issue is that every time I boot things up, I have to manually open up the audio/midi setup, select each network session, then choose the mio port, then hit connect x4!  Not a huge issue up front.  My biggest concern is if I have to do that in the middle of a performance.  I've had a crash before while performing.  Anything that can be done to speed up time to recover is priceless! 

I've seen a few comments online about using apple automator, or apple script to automate the reconnection,....really?  It's not automatic?????  Any help/pointers/advice would be greatly appreciated!

Comments

  • This a problem with the way Apple implemented RTP-MIDI. We are currently working on a better solution. More info in a week or two ;-)
  • That's FANTASTIC!!! Can't wait!
  • We showed an alpha version of our latest RTP-MIDI Manager at NAMM. Here's a sneak preview:


  • Hi all, here is an AppleScript I wrote today, you can enable /disable session, and do the patch between Session and Responders.
    It work fine for me on Mojave.

    Best
    Loïc

    (*
    Activate and Patch Midi Network Session
    Version: 1.0

    This script uses UI element scripting to get show MIDI Network Setup, activate or deactivating MIDI Network Session and do the patch between Session and Responders.

    Copyright © 2020 Spiritviews.

    You may incorporate this Spiritviews code into your program(s) without
    restriction. This Spiritviews code has been provided "AS IS" and the
    responsibility for its operation is yours. You are not permitted to
    redistribute this Spiritviews code as "Spiritviews code" after having
    made changes. If you're going to redistribute the code, we require
    that you make it clear that the code was descended from Spiritviews
    code, but that you've made changes.
    *)

    showMIDINetworkSetup()
    (*
    deactivateTheMidiSession(1)
    deactivateTheMidiSession(2)
    deactivateTheMidiSession(3)
    deactivateTheMidiSession(4)
    deactivateTheMidiSession(5)
    *)

    activateTheMidiSession(1)
    activateTheMidiSession(2)
    activateTheMidiSession(3)
    activateTheMidiSession(4)
    activateTheMidiSession(5)
    delay 0.2
    patchTheMidiSession(1, 1)
    patchTheMidiSession(2, 2)
    patchTheMidiSession(3, 3)
    patchTheMidiSession(4, 4)
    patchTheMidiSession(5, 5)



    --deactivateTheMidiSession(1)


    on activateTheMidiSession(theCheckboxNumber)
    --activate application "Audio MIDI Setup"
    tell application "System Events"
    tell process "Audio MIDI Setup"
    try

    set theCheckbox to checkbox 1 of UI element 1 of row theCheckboxNumber of table 1 of scroll area 1 of group 1 of window "MIDI Network Setup"
    tell theCheckbox
    set checkboxStatus to value of theCheckbox as boolean
    if checkboxStatus is false then click theCheckbox
    end tell
    end try
    end tell
    end tell
    end activateTheMidiSession

    on deactivateTheMidiSession(theCheckboxNumber)
    --activate application "Audio MIDI Setup"
    tell application "System Events"
    tell process "Audio MIDI Setup"
    try

    set theCheckbox to checkbox 1 of UI element 1 of row theCheckboxNumber of table 1 of scroll area 1 of group 1 of window "MIDI Network Setup"
    tell theCheckbox
    set checkboxStatus to value of theCheckbox as boolean
    if checkboxStatus is true then click theCheckbox
    end tell
    end try
    end tell
    end tell
    end deactivateTheMidiSession

    on patchTheMidiSession(theSessionNumber, theResponderNumber)
    --activate application "Audio MIDI Setup"
    tell application "System Events"
    tell process "Audio MIDI Setup"
    try
    select row theSessionNumber of table 1 of scroll area 1 of group 1 of window "MIDI Network Setup"
    select row theResponderNumber of table 1 of scroll area 1 of group 3 of window "MIDI Network Setup"
    click button "Connect" of group 3 of window "MIDI Network Setup"

    end try
    end tell
    end tell
    end patchTheMidiSession

    on showMIDINetworkSetup()
    try
    activate application "Audio MIDI Setup"
    tell application "System Events"
    tell process "Audio MIDI Setup"
    try
    click menu item "Show MIDI Studio" of menu 1 of menu bar item "Window" of menu bar 1
    end try
    delay 1
    try
    click menu item "Open MIDI Network Setup…" of menu 1 of menu bar item "MIDI Studio" of menu bar 1
    end try
    end tell
    end tell
    on error
    return false
    end try
    end showMIDINetworkSetup




  • Here's two videos on how to make your interface auto connect with sessions on your computer

Sign In or Register to comment.