a different way to set a midi port?

Oct 4, 2007 at 10:26am

a different way to set a midi port?

i’ve been using midinfo to send port info to my patches. the problem is, sometimes a few of my midi devices aren’t plugged in, and then the relative midi port assignments change relative to the number i set. is there another absolute way of setting a midi port?

#33965
Oct 4, 2007 at 10:52am

On 4 oct. 07, at 12:26, blairell wrote:

>
> i’ve been using midinfo to send port info to my patches. the problem
> is, sometimes a few of my midi devices aren’t plugged in, and then the
> relative midi port assignments change relative to the number i set.
> is there another absolute way of setting a midi port?

On MacOS (9, X), you can give names to your MIDI devices and use these
names as argument in Max’ MIDI objects. On Win, I don’t know.

___________________________
Patrick Delges

Centre de Recherches et de Formation Musicales de Wallonie asbl

http://www.crfmw.be/max

#113873
Oct 4, 2007 at 2:07pm

i tried this -

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 900 87 100 9109513 Maple Midi Out: Port 3;
#P newex 866 116 45 9109513 midiinfo;
#P user umenu 906 203 122 9109543 1 64 219 0;
#X add “Microsoft Synthesizer”;
#X add “USB Audio Device”;
#X add “USB Audio Device [2]“;
#X add “USB Audio Device [3]“;
#X add “Maple Midi Out: Port 1″;
#X add “Maple Midi Out: Port 2″;
#X add “Maple Midi Out: Port 3″;
#X add “Maple Midi Out: Port 4″;
#X add “Maple Midi Out(x): 5″;
#X add “Maple Midi Out(x): 6″;
#X add “Maple Midi Out(x): 7″;
#X add “Maple Midi Out(x): 8″;
#X add “Maple Midi Out(x): 9″;
#X add “Maple Midi Out(x): 10″;
#X add “Maple Midi Out(x): 11″;
#X add “Maple Midi Out(x): 12″;
#X add “Microsoft GS Wavetable SW Synth”;
#X add “Fireface 800 Midi”;
#P connect 1 0 0 0;
#P connect 2 0 1 0;
#P window clipboard copycount 3;

but it didn’t work on pc. maybe i misunderstood.

#113874
Oct 4, 2007 at 3:16pm

Hi.
midiinfo is used to get a port list.
the message with your port name has to be sent to your midiin (or notein or
ctlin…) object and not to midiinfo…
cheers.

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 430 247 127 9109513;
#P comment 70 121 139 9109513 Create menu of output devices;
#P comment 262 121 139 9109513 Create menu of input devices;
#P button 213 120 15 0;
#P button 244 120 15 0;
#P number 371 250 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 356 272 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 430 213 57 9109513 prepend set;
#P newex 356 221 40 9109513 ctlin;
#P newex 303 250 40 9109513 noteout;
#P newex 303 221 40 9109513 notein;
#P user umenu 213 170 117 9109543 1 64 186 0;
#X add;
#P newex 213 145 41 9109513 midiinfo;
#P connect 5 0 12 0;
#P connect 1 1 2 0;
#P connect 1 1 4 0;
#P connect 1 1 5 0;
#P connect 8 0 0 1;
#P connect 0 0 1 0;
#P connect 4 0 6 0;
#P connect 4 1 7 0;
#P connect 2 0 3 0;
#P connect 2 1 3 1;
#P connect 9 0 0 0;
#P window clipboard copycount 13;

#113875
Oct 5, 2007 at 1:07am

ahh i get you. i didn’t have the commas on either side too.
it worked on my midi outputs, but nnot on the rtin object for some reason

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 86 43 106 9109513 “Maple Midi Out: Port 3″;
#P newex 148 91 25 9109513 rtin;
#P connect 1 0 0 0;
#P window clipboard copycount 2;

#113876
Oct 5, 2007 at 1:12am

apologies, i forgot to make it a midi in port. newb.

problem solved. thanks so much guys!

#113877

You must be logged in to reply to this topic.