slowly learning - help with conditional routing please

Learn about building and using Max for Live devices.
slatepipe
Posts: 1946
Joined: Thu Dec 30, 2004 4:10 pm
Location: stoke newington in london
Contact:

slowly learning - help with conditional routing please

Post by slatepipe » Thu Feb 27, 2014 1:24 pm

i been literally sat trying to figure this out for three hours now :x

im sure it's quite simple but i cant figure it out

i am trying to make a patch to use a usb joystick i picked up. i'm using the hi object with unpack and route. i can send bang messages out of four outlets in the route object that are dependant on four numbers that the direction buttons on the joystick generates

the number that comes out of the first outlet in the unpack object is 32, when i press a shift button on the joystick the direction numbers are different.

how can i only use the numbers that are generated when the number from the first unpack outlet is 32? am i doing this right or is there a simpler way?

this is probably really simple stuff so apologies for being a slow learner :oops:

here's a pic for clarification :

Image


thanks for any help

chapelier fou
Posts: 6021
Joined: Mon May 15, 2006 12:15 pm

Re: slowly learning - help with conditional routing please

Post by chapelier fou » Thu Feb 27, 2014 1:38 pm

i have no max on this computer, but i'd say 'gate' is the object you need.
As a side note, if the 27000, 9000etc. are supposed to be produced by the joystick, there might be a huge chance that you miss the value. I would select a zone around the value, using 'split' for instance.
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

chapelier fou
Posts: 6021
Joined: Mon May 15, 2006 12:15 pm

Re: slowly learning - help with conditional routing please

Post by chapelier fou » Thu Feb 27, 2014 1:40 pm

looking at your patch again, is the '32' in a list before the message you want to route ? in this case why do you unpack them ? Route would act as a filter just like you want.
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

slatepipe
Posts: 1946
Joined: Thu Dec 30, 2004 4:10 pm
Location: stoke newington in london
Contact:

Re: slowly learning - help with conditional routing please

Post by slatepipe » Thu Feb 27, 2014 1:58 pm

thanks for your help feller

i'll try the ideas you're mentioning, i'm pretty much a novice at this and i'm basically copying stuff from the help files and elsewhere.

the direction arrows on the joystick give on/off values - which results in the numbers i put in the route object. there's thumbsticks on it too which i guess give more varying values. at the moment though i'll just try and get this bit to work. then maybe the buttons

thanks again

slatepipe
Posts: 1946
Joined: Thu Dec 30, 2004 4:10 pm
Location: stoke newington in london
Contact:

Re: slowly learning - help with conditional routing please

Post by slatepipe » Thu Feb 27, 2014 2:06 pm

i tried hooking the route object straight up to the hi but it doesnt work. it puts out two numbers each time, 32 is always the first, then the numbers i have put into the route object. i guess that's why i tried to unpack them, as i only need the second number in the list to control direction. the first number, 32, i want to use to stop the numbers going to the route. ie if the value changes from 32

i'll have another look at the gate object
:?

regretfullySaid
Posts: 8913
Joined: Thu Apr 22, 2010 5:50 pm

Re: slowly learning - help with conditional routing please

Post by regretfullySaid » Thu Feb 27, 2014 2:07 pm

See if this helps:

Code: Select all

<pre><code>
----------begin_max5_patcher----------
796.3oc2XFsaaCBEF95To9Nv314TYvXh8z1j1dMllpvIzTpRvQXRW1p169vf
8p6RaLK01woWjX4iA7Oe7yAvOb4ESfY463EPvG.eCLYxClHSrwJiLoNvD3Z1
t4qXE1BBmmudMWpgAUOTy2osO3iSmNEH2tNiqJ.razbEfl92hciZYVYwBuJr
NzFld9sB4xqU74ZmHHozqhC.jXpoX.DJxdI4pPv2qqk4MjuUuhqsx4uM1M4R
cg3W7xfnFujx3R1Zab3WTB1JvWyWs.1n4Dx5VCUGUrvV97r6lRnPavee4EkW
MWBd8rxgoJJEgAFz84+STgmQrnBiFOnJ93QkiHvC4MhBa3MhCaq+hqC6ho+4
FtqgfhxgD.LiIWBer1aXJSm2LfbMWxxVwGFlgo8JyBQMLIuYX1qwmw+goI1e
FoFjADGBkQIIkzKBicWJ45wgRKCCbH8wZ2ezJpOcXQNqENk7lxgg6dG16AHO
7WUfrc+E5ffri8U3miQgcOi7ZFXL5LgPnzimPq4EErk78QDM0jN+vqSZcPHp
iVtcRQOFLMHLJoGXjYGUjjCZkbdnyEFMq6mosUdWtP5SBImchPaKydzKynfp
eCvpcn3tyO8LPgRbIeHMWta7ZbH8JLHIzyIXD0uNipEtOSfAtWgQbT54DLPc
e9UkomvMaR4fTBMyRoPWF1zieuy8Q10miTo8Dn1XJUKvhNC2.VtaF2vJo6g0
69TKTpdQapCVj1nzIeOxztGRKYlYdX.1iOLRjaELRx32Ms2pWt2IbkPt2mv0
1gKev+fuh7sp40BuZ22AfFc5E7BsPxzhbYiRk9zBcqXwBt7IGDegnn7v4V0F
9xCn9qqYiSck5irLazvXlFbcgZUWnAWWIdoK7IQWsONRFbc4mu2bFmAeBYxY
svRFoYvNA5J1qojoCt0GG5CvvQCNwvQ9PrSjtB8ZjbfsXdsJ4vuHoW7BO7ov
7xegomlTEsBrgWWTuFGwiTcE9pzU0l9Ya1bOWUT0zNIYNbzc4px6oAt6ER28
tC4AU76E0UopHLk4fQZyoh1pbmLYG09ICsuPye+AXOsdaC
-----------end_max5_patcher-----------
</code></pre>
Using the gate you can route the directionals when shift is pressed, ie !=32.

If you want to route any list starting with 32 but not have the 32 cut off, you can use routepass.

Once you get to where you just want a certain number to bang, you can use [sel], instead of route, that is in your case, if there is no number after 27000, and it's the actually 27000 you want to trigger the bang.

Remember, route will cut off the number you're routing, and routepass won't.
ImageImage

slatepipe
Posts: 1946
Joined: Thu Dec 30, 2004 4:10 pm
Location: stoke newington in london
Contact:

Re: slowly learning - help with conditional routing please

Post by slatepipe » Thu Feb 27, 2014 2:27 pm

:D

done it! thanks for your help fellers

i used that routepass object followed with an unpack

now for some buttons....

slatepipe
Posts: 1946
Joined: Thu Dec 30, 2004 4:10 pm
Location: stoke newington in london
Contact:

Re: slowly learning - help with conditional routing please

Post by slatepipe » Thu Feb 27, 2014 7:40 pm

i made some good progress today but now i got stuck on a new problem. i cant get anything to show up in my presentation. from reading the docs and helpfiles it says everything in the presentation must be in the top level of the patch and i think they are but i cant get anything to show up. i think it must be something to do with a subpatcher or something but i cant figure it out. i managed to get objects showing up before in different devices but i'm stuck here. can anyone help again???

thanks :x :oops: :)




<pre><code>
----------begin_max5_patcher----------
3941.3oc6cs0iihbE94dk1+CHq7PhzL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dunstable
Contact:

Re: slowly learning - help with conditional routing please

Post by S4racen » Thu Feb 27, 2014 7:50 pm

Right click on objects and select show in presentation...

Right click in device and choose patcher inspector... Open in Presentation....

Cheers
D

slatepipe
Posts: 1946
Joined: Thu Dec 30, 2004 4:10 pm
Location: stoke newington in london
Contact:

Re: slowly learning - help with conditional routing please

Post by slatepipe » Thu Feb 27, 2014 8:02 pm

:D yay again

thanks tons

i been struggling with that for 3 hours

regretfullySaid
Posts: 8913
Joined: Thu Apr 22, 2010 5:50 pm

Re: slowly learning - help with conditional routing please

Post by regretfullySaid » Thu Feb 27, 2014 8:52 pm

Slate's getting gangbanged with M4L advice. Feelin' the love.
ImageImage

slatepipe
Posts: 1946
Joined: Thu Dec 30, 2004 4:10 pm
Location: stoke newington in london
Contact:

Re: slowly learning - help with conditional routing please

Post by slatepipe » Thu Feb 27, 2014 8:59 pm

shadx312 wrote:Slate's getting gangbanged with M4L advice. Feelin' the love.

:lol:


more q's soon. im sure

stringtapper
Posts: 6302
Joined: Sat Aug 28, 2004 6:21 pm

Re: slowly learning - help with conditional routing please

Post by stringtapper » Thu Feb 27, 2014 9:19 pm

Uh oh. The Max community's helpful nature is seeping into the Ableton forum.

:x

Somebody tell this guy to RTFM or at least bring up Bitwig lest we forget who we are.

:P
Unsound Designer

S4racen
Posts: 5834
Joined: Fri Aug 24, 2007 4:08 pm
Location: Dunstable
Contact:

Re: slowly learning - help with conditional routing please

Post by S4racen » Fri Feb 28, 2014 9:47 am

stringtapper wrote:Uh oh. The Max community's helpful nature is seeping into the Ableton forum.

:x

Somebody tell this guy to RTFM or at least bring up Bitwig lest we forget who we are.

:P
This...

HAHAHAHAHAHAHAHA!

Cheers
D

slatepipe
Posts: 1946
Joined: Thu Dec 30, 2004 4:10 pm
Location: stoke newington in london
Contact:

Re: slowly learning - help with conditional routing please

Post by slatepipe » Fri Feb 28, 2014 9:53 am

i thought rtfm meant request techniques of forum members ??

:wink:

Post Reply