virtual midi ports

DRKOSS's icon

Hi - having trouble with virtual midi ports.

works great in Max 6 on OSX, using the message

;
#SM createoutport AUX1 coremidi

However, when i make a standalone application, they don't seem to pass midi.

they show up as midi ports (in both pro tools and my standalone) but don't actually pass midi.

any ideas?

thanks!

DRKOSS's icon

actually - is there a way to link virtual ports by name or create bidirectional virtual midi ports (a port with both an associated in and out)

as far as i know you can only make an out or an in

even if you give the port the same name - it seems max won't route midi from one to the other.

DRKOSS's icon

here's an example. this patch works fine in max (using an external DAW to loop the midi back in) but doesn't work when saved as a standalone application. Any ideas?

If I leave the original max patch open in the background - it works!

Close the max patch, and doesn't work.

Max Patch
Copy patch and select New From Clipboard in Max.

thanks!

Florent Ghys's icon

did you try delaying the loadbang?
maybe try to create the midi port a little later?
something like this:

Max Patch
Copy patch and select New From Clipboard in Max.

`

Florent Ghys's icon

Just built standalones with your patcher and mine.
Delay was the way to go.
Your patcher don't work because the midiin object isn't set on AUX at startup.
Delaying loadbang solves your issue.
Cheers

julynessi's icon

the Create MIDI Port IN & Out function in Max 6 It's work very well.
Not sure this will solve your problems but if you need to use your virtual port with out any UI selection this work for me 100%;

4238.maxmidivrport.png
png
Florent Ghys's icon

this is basically the same thing he was doing
what is your julynessi.midiparser ?

Nikolay Khrust's icon

DRKOSS, thank you very much for your patch!

Because ports "from Max" didn't work (I don't know why, there were "disabled") I created a new MIDI port with your patch and transmit MIDI messages from Max to Ableton Live.

I didn't know that Max can create virtual MIDI ports!

Source Audio's icon

Virtual midi ports are Mac only.
They make not much sense because they are available only
after app started and created them - that is useless.
On Mac one can create any number of IAC midi busses, which are then
permanently active and can be used in any app midi setup.

So why bother with that useless virtual midi ports ?