MIDI port Name - Removing From List of Available Ports


    Sep 03 2018 | 1:55 pm
    Hey folks,
    I habitually use a combination of physical and virtual MIDI ports for my setup and tools.
    However, every time I disallow particular MIDI ports (for dedicated use by other tools), they are re-allowed upon restarting of Max, and I have to manually uncheck them every time.
    Is there no way to specify that specific ports be marked not only OFF, but also UNAVAILABLE \INVISIBLE to Max, and Max apps ?
    My specific usage scenario involves the use of a Korg nanoKontrol2 as transport\etc., control in Ableton Live 10, and because I need to start Max tools first, the Max tools grab the nanoKontrol2 MIDI ports and enable one of them, even though I mark if OFF (in MIDI Setup) in every tool I use.
    I use specific MIDI ports for specific tools, and am looking to specify precisely where they are used.
    It's mildly frustrating.
    Thanks in advance for your insights, Glennzone

    • Sep 04 2018 | 10:09 am
      MIDI ports are system-wide. The port list ist reported by CoreMidi and individual ports cannot get hidden for specific applications. I know of two possibilities:
      1. In a Max patcher you can create your own virtual ports and (after some delay) set them for your [midiin] and [midiout] by port messages. This way your tools use only your own ports. Obviously these ports are also system-wide and seen by other applications. Use message boxes for scripting and click or bang them, for example by [loadbang]: ;#SM createinport "Rack Feedback" CoreMidi ;#SM createoutport "Rack Control" CoreMidi You can also get rid of the Max default ports: ;#SM deleteinport "to Max 1" CoreMidi ;#SM deleteoutport "from Max 1" CoreMidi
      You find a short description by typing midi or coremidi into the reference search box and then look for the guide "Using Max with Other Applications".
      — 2. Alternatively you may use MidiPipe to "hijack" virtual and hardware input ports. Use with caution. Keep the ReadMe file that comes with MidiPipe, it explains the solution if you happen to lose a port permanently.