midi out - auto from max 1

james789op's icon

I'm making a patch that will be controlled through presentation mode by an end user. Is there a way of setting the output to 'from Max 1' automatically when the patch is opened?

Thanks

James

seejayjames's icon

You should be able to with a combination of [loadbang] to the [midiinfo] object, then selecting "from Max 1" in the [umenu] that populates. Note that you'll want to select the correct item in the [umenu] by "symbol" rather than by number/index, because the list order may change. Check [midiinfo] help file for more.

Then you can just hide the whole mess ;)