Forums > MaxMSP

if statements HELP ME :(

November 18, 2012 | 10:47 pm

Hi there….
so basically im useless at this maxmsp stuff and maybe im asking a silly question but here it goes…
so i have a number coming into an if statement between 0-360 if the number is between 0 -30 i want it to trigger one sound for 30-60 a different sound , form 60 -90 another sound and so on….
so far i have this if $f1 > 0. && $f1 < 30 then send first bang || $f1 > 31 && $f1 < 60 then send second bang

I have send and receive objects called first and second…. ANY IDEAS…or can it be done


November 18, 2012 | 11:45 pm

this is the way I’d do it– div and sel– try avoiding the if object unless it makes things simpler

– Pasted Max Patch, click to expand. –

November 19, 2012 | 7:10 am

Hi,

you might want to try [sadam.split] (see http://www.sadam.hu/software ) for that:

– Pasted Max Patch, click to expand. –

Cheers,
Ádám


Viewing 3 posts - 1 through 3 (of 3 total)