Midiin object misbehaving or me being dumb?

Apr 11, 2007 at 10:03am

Midiin object misbehaving or me being dumb?

Hi guys,

I’m just messing around making a polyphonic softsynth but am experience difficulty getting MIDI in through the midiin object.

To simply demonstrate the problem:

Midiin -> midiparse -> unpack 00 -> number boxes

I am not getting note on/off and velocity values being given out.

Using the notein object I have no issue, the info is there… and I have tried setting the various ports connected using midiinfo.

Is there something fundamental that I am missing here or is midiin or my system misbehaving?

Powermac G5 – Mac OSX 10.4.8
Max/MSP 4.6.2
Yamaha O1X as MIDI interface
Yamaha PSR-220 MIDI keyboard

I have attached a file of source code.

Cheers

Andy

#31304
Apr 11, 2007 at 10:16am

Its ok – problem solved – sort of – for some reason sending the midin object the port to use does not work – whereas choosing the port by double clicking on the midiin object works fine.

This still leaves me the problem of useability though.

What haven’t I included to make the umenu work?

Cheers

Andy

#101578
Apr 11, 2007 at 1:34pm

like this…

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 390 130 67 196617 prepend port;
#P window linecount 2;
#P comment 462 130 148 196617 use symbol outlet from umenu , then prepend port message;
#P window linecount 1;
#P comment 234 220 100 196617 Works Fine;
#P number 276 293 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 381 276 92 196617 midiparse;
#P newex 381 242 45 196617 midiin a;
#P number 447 330 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 399 330 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 399 308 58 196617 unpack 0 0;
#P number 241 293 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 304 85 45 196617 midiinfo;
#P user umenu 304 108 96 196647 1 64 124 0;
#X add “ReMOTE SL Port 1″;
#X add “ReMOTE SL Port 2″;
#X add “ReMOTE SL Port 3″;
#X add “to MaxMSP 1″;
#X add “to MaxMSP 2″;
#P message 339 66 20 196617 0;
#P newex 304 41 52 196617 loadbang;
#P message 329 565 41 196617 steal 1;
#P newex 329 543 48 196617 loadbang;
#P newex 659 501 27 196617 t l b;
#P message 381 543 47 196617 target 0;
#P newex 608 430 27 196617 t i b;
#P newex 563 430 27 196617 t i b;
#P newex 381 605 146 196617 poly~ cs_04_voice 16;
#P newex 381 450 86 196617 prepend midinote;
#P newex 381 678 85 196617 clip~ -0.99 0.99;
#P user ezdac~ 381 710 425 743 0;
#P user umenu 661 326 100 196647 1 64 342 1;
#X add display;
#X add lowpass;
#X add highpass;
#X add bandpass;
#X add bandstop;
#X add peaknotch;
#X add lowshelf;
#X add highshelf;
#P window setfont Helvetica 9.;
#P user filtergraph~ 659 367 256 128 21 9 20. 20000. 0.0625 16. 0 1 1 0 0 1 1;
#X frgb 170 170 170;
#X brgb 209 209 209;
#X rgb2 0 0 0;
#X rgb3 130 130 130;
#X rgb4 0 0 0;
#X rgb5 76 108 172;
#X rgb6 210 74 54;
#X rgb7 255 22 22;
#X linmarkers 5512.5 11025. 16537.5;
#X logmarkers 10. 100. 1000. 10000.;
#X nfilters 1;
#X setfilter 0 5 1 0 0 430.828522 0.961105 0.059986 0. 0. 0. 0. 0. 0.;
#X done;
#P window setfont “Sans Serif” 9.;
#P comment 608 367 48 196617 Release;
#P user dial 608 383 40 40 128 1 0 0 159 270 1 1. 170 170 170 221 221 221 120 120 120 225 225 225 0 0 0 0 0 0;
#P user dial 563 384 40 40 128 1 0 0 159 270 1 1. 170 170 170 221 221 221 120 120 120 225 225 225 0 0 0 0 0 0;
#P user gain~ 381 635 23 11 158 0 1.071519 7.94321 10.;
#P newex 241 242 54 196617 notein a 1;
#P newex 241 270 54 196617 ddg.mono;
#P comment 564 367 36 196617 Attack;
#P user panel 213 214 128 128;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 367 238 128 128;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P connect 34 0 4 0;
#P connect 34 0 29 0;
#P connect 23 1 34 0;
#P connect 9 0 18 0;
#P fasten 10 1 9 0 756 354 664 354;
#P connect 7 0 16 0;
#P connect 6 0 15 0;
#P fasten 16 0 14 3 613 526 521 526;
#P fasten 15 0 14 2 568 526 476 526;
#P connect 26 1 28 0;
#P fasten 18 0 14 1 664 526 431 526;
#P connect 22 0 24 1;
#P fasten 21 0 22 0 309 61 344 61;
#P connect 12 0 11 0;
#P fasten 12 0 11 1 386 702 420 702;
#P connect 26 0 27 0;
#P connect 30 0 13 0;
#P connect 30 0 26 0;
#P connect 5 0 12 0;
#P connect 14 0 5 0;
#P connect 17 0 14 0;
#P fasten 20 0 14 0 334 592 386 592;
#P connect 13 0 14 0;
#P fasten 15 1 17 0 585 502 386 502;
#P fasten 16 1 17 0 630 502 386 502;
#P fasten 18 1 17 0 681 526 386 526;
#P connect 29 0 30 0;
#P connect 24 0 23 0;
#P connect 19 0 20 0;
#P connect 4 1 3 1;
#P connect 3 1 31 0;
#P connect 3 0 25 0;
#P connect 4 0 3 0;
#P window clipboard copycount 35;

#101579
Apr 11, 2007 at 4:47pm

Thats great. Thanks

Andy

#101580

You must be logged in to reply to this topic.