MSP question: opposite of [selector~] object
Hi I’m looking for the exact opposite of the [selector~] object. That means an object that allows me to send 1 source to different outputs, depending on the number (message) I send in it.
I want to use it with a umenu: 1 source sent to different outputs based on the umenu.
[matrix~] can do it.
something like that for example :
----------begin_max5_patcher---------- 1015.3oc4Y01iahCD9yI+J3htucoQdr409s96n5zJB3l0m.bDX5tcqZ+sefs IgzBAydTuTcZ0xPbbhelmYlGOl70sa1cj+LsZmy6c9nylMec6lMxgZGXi90a 1kG+bRVbkbZ6JnOwO9O61qdKA8YgbXgCq8utwKpyYEYTg7y.5AOGKRdjUb5g RZhPslXWuCn8Ndxq.DHMgGPN+s9yvRke8MK46Hgce6ehWHJhyox25Ckr3rdq KuVzsvD8npgDe4LUsp6XEhc6uwbYAa+tqXuHmIfNfZG8aa21dYugTTNUPK+9 boBOBp06wQRSn7JPFgJ7F1ggwb3OkwiacRq4MtgxPJNvy.uwe06MDoaP.ChM 3v0t2PhzYZFDavQqduQIgfCMotAs58FjJ13aRciq87lQj8+qA8O7cD70tDVU PgO3MtfONXtB9v8D7WRI9Qni24.uVBw0DBA9ciPpegMaBQwD.R0Y.4dsDfwK VKAGiKN01LPm0RDzezjxfdkTjJy49oLP3pMkImVUEeh9STBx4OAGzqsNRIb5 d2zFvewHkQXD3fWjGDFrzzxrkWHA5sPTxKgJNZDZw8WMs7VK11wFfIUN+ePr kzWIw0+dEMQ+1H0VmSKpuvNMqq9.tW8JAMWOFzr96a.AVaIZqq15os9Zaf1F psQZKbkyL9rupc3.81cp99BFl7W7i9J+eXROzhG5E6JOxOAAFztKYs27NFgU GEw2fCVs5OzK3EnRIMH1fW8OPB.TwFOShMV7fUzWRiSt3MeNt7R0cbsf+HM6 7CMSXt55c6voj2udcv5ptu7LdRibRO+7Vu+0nJjvyaDiES4dOH2C6G2OqRDW JbhqSY7KPjUPS30Eh99uoo.9QRNwCt1JDYjL.u4p2hV3t.OGWPyFh1jjxSrh mR4O8vMyZPZ3HuLkVlvy3kJR.cfDgaJs22bWvk6.Hv2s4NnGcLDChUYUndaY 4MRZk+8IJEv5GFOdpGLkwnatrjO1hjujjQ+trJY9UVXUWRRbo5mDiFoxZ4Zg rhcpns3boOswHDTdrnj8bCC01XCbX9hsJdAKOFlqZ+vQYoYeHdXJZZ+ux6xX UByCDxIJ0s9gelEIs0N9sQmJdcYRm6z8yd3furdozJAqHVv3E8lTSy4NWI2G Yoozh9Ua4rzy7lV+tzI7foJyBRvDPp8o20aRVASnIvDDZUdxDZhXWHAlPSsO VMalN0tbQSwSd1GSgSgIe6iofohcg1GS9SgoH6iIuohcH6iI2ovjq8wDYJLQ rOllZ2N7aPc2ja28FnOMoNtkym.CvDwt6s.tqPL4u9vD1jXGX25NYGjSliC1 ESFoOEX27Iihc1UKHx.ZB9uD5Zdw219u.Svo1QA -----------end_max5_patcher-----------
That’s interesting, I like your use of the uzi hehe.
but the thing is when you put, let’s say, 8, all the first 8 light up. I’d need it to only send it to the 8th channel and no other.
However your patch is still usefull to me because I needed that system for something else and I made it in a way that required many more connections between my objects, so I’m gonna update my patch!
Edit: the matrix~ object is what I was looking for tho. Unless there’s another way.
Check out [gate~]
Ahh there we go.
Thanks.. gate~ is much easier to use.. I couldn’t really use the matrix with the umenu directly…
I wonder why I didn’t think about gate~ earlier.. I knew about this object!
most people wonder since 10 years why selector~ is not called switch~.
|jbl wrote on Sat, 10 October 2009 13:07|
|Thanks.. gate~ is much easier to use.. I couldn’t really use the matrix with the umenu directly…|
gate~ is easier, but there are clicks. go with matrix~ and a slight ramp time to avoid them, plus there’s the nice matrixctrl UI.
You can use matrix~ with the umenu, just determine the right connect/disconnect commands to send… so if your umenu sends out value 4, this could translate to
4 0 1 (connect column 4, row 0) or
0 4 1 (connect column 0, row 4)
with 0 as the third number if you want to disconnect.
Try using a matrixctrl to control the matrix~ first, since it’s a lot easier to experiment with, and can use [preset]. Then see what commands come out of the left outlet for connecting/disconnecting, and you’ll be able to work the umenu in there instead.
Forums > MaxMSP