## expressions…

Apr 24, 2007 at 4:19pm

# expressions…

Hi …maybe there’s a tutorial that can help me with this…but i’m not
beeing able to find it…and i’m short on time…
If i have a flow of numbers let’s say…from 1 to 100 and i want to say to
max that when a number between 1and 10 passes it gives a bang (sorry about
my english)…
and when a number between 11-20 passes another bang—- i’ve tryied with
these operations >= and < =.......but it's not working, is there anyway of
using both operations in a box?
like…>= 1 and < =10 ?

Thanks :)

#31569
Apr 24, 2007 at 4:56pm

Use “split”, like so…

#P button 218 155 15 0;
#P button 172 150 15 0;
#P button 136 136 15 0;
#P window setfont “Sans Serif” 9.;
#P number 136 55 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 172 114 56 9109513 split 51 100;
#P newex 136 87 46 9109513 split 1 50;
#P connect 1 1 5 0;
#P connect 1 0 4 0;
#P connect 0 0 3 0;
#P connect 0 1 1 0;
#P connect 2 0 0 0;
#P window clipboard copycount 6;

—– Original Message —–
From: Afonso Barros
Date: Tuesday, April 24, 2007 11:28 am
Subject: [maxmsp] expressions…

> Hi …maybe there’s a tutorial that can help me with this…but
> i’m not
> beeing able to find it…and i’m short on time…
> If i have a flow of numbers let’s say…from 1 to 100 and i want
> to say to
> max that when a number between 1and 10 passes it gives a bang
> my english)…
> and when a number between 11-20 passes another bang—- i’ve
> tryied with
> these operations >= and < =.......but it's not working, is there
> anyway of
> using both operations in a box?
> like…>= 1 and < =10 ?
>
>
> Thanks :)
>

#102801
Apr 24, 2007 at 4:57pm

#102802
Apr 24, 2007 at 5:39pm

thank’s men..tha was exactly what i needed :)

2007/4/24, apalomba@austin.rr.com :
>
> Use “split”, like so…
>
>
> #P button 218 155 15 0;
> #P button 172 150 15 0;
> #P button 136 136 15 0;
> #P window setfont “Sans Serif” 9.;
> #P number 136 55 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P window linecount 1;
> #P newex 172 114 56 9109513 split 51 100;
> #P newex 136 87 46 9109513 split 1 50;
> #P connect 1 1 5 0;
> #P connect 1 0 4 0;
> #P connect 0 0 3 0;
> #P connect 0 1 1 0;
> #P connect 2 0 0 0;
> #P window clipboard copycount 6;
>
>
>
>
> —– Original Message —–
> From: Afonso Barros
> Date: Tuesday, April 24, 2007 11:28 am
> Subject: [maxmsp] expressions…
>
> > Hi …maybe there’s a tutorial that can help me with this…but
> > i’m not
> > beeing able to find it…and i’m short on time…
> > If i have a flow of numbers let’s say…from 1 to 100 and i want
> > to say to
> > max that when a number between 1and 10 passes it gives a bang
> > my english)…
> > and when a number between 11-20 passes another bang—- i’ve
> > tryied with
> > these operations >= and < =.......but it's not working, is there
> > anyway of
> > using both operations in a box?
> > like…>= 1 and < =10 ?
> >
> >
> > Thanks :)
> >
>

#102803
Apr 24, 2007 at 6:40pm

#P button 192 120 15 0;
#P button 175 120 15 0;
#P button 158 120 15 0;
#P button 141 120 15 0;
#P button 124 120 15 0;
#P button 107 120 15 0;
#P button 90 120 15 0;
#P button 73 120 15 0;
#P button 56 120 15 0;
#P button 39 120 15 0;
#P button 22 120 15 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 22 95 198 196617 sel 0 1 2 3 4 5 6 7 8 9 10;
#P number 22 54 35 9 1 100 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 22 73 31 196617 / 10;
#P connect 2 10 13 0;
#P connect 2 9 12 0;
#P connect 2 8 11 0;
#P connect 2 7 10 0;
#P connect 2 6 9 0;
#P connect 2 5 8 0;
#P connect 0 0 2 0;
#P connect 2 4 7 0;
#P connect 2 3 6 0;
#P connect 2 2 5 0;
#P connect 2 1 4 0;
#P connect 2 0 3 0;
#P connect 1 0 0 0;
#P window clipboard copycount 14;

Chris Muir | “There are many futures and only one status quo.
cbm@well.com | This is why conservatives mostly agree,