Forums > MaxMSP

ramping a value between 0 and 1

July 5, 2007 | 8:09 am

I would like to automate a value running up and down between 0 and 1, maybe at different speeds. Does someone has an idea of an existing patch that does it?


July 5, 2007 | 8:10 am

phasor~ ?


July 5, 2007 | 4:20 pm

Hans Mittendorf schrieb:
> I would like to automate a value running up and down between 0 and 1,
> maybe at different speeds. Does someone has an idea of an existing
> patch that does it?

line… or look at my bfline abhaXion…

#P window setfont "Sans Serif" 9.;
#P flonum 105 253 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 118 60 15 0;
#P window linecount 1;
#P newex 139 59 30 196617 t b i;
#P number 180 64 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 139 85 51 196617 int 5000;
#P message 139 130 31 196617 0. $1;
#P newex 105 106 44 196617 gate 2 1;
#P newex 145 207 30 196617 + 1;
#P toggle 145 183 15 0;
#P message 105 130 31 196617 1. $1;
#P newex 105 157 50 196617 line 0.;
#P connect 7 0 6 1;
#P connect 8 0 6 0;
#P connect 6 0 4 1;
#P connect 9 0 6 0;
#P connect 0 1 2 0;
#P connect 1 0 0 0;
#P connect 5 0 0 0;
#P connect 0 0 10 0;
#P connect 4 0 1 0;
#P connect 4 1 5 0;
#P fasten 8 1 4 0 164 80 110 80;
#P fasten 3 0 8 0 150 229 223 229 223 50 144 50;
#P connect 2 0 3 0;
#P window clipboard copycount 11;


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


July 5, 2007 | 4:34 pm

At 10:09 AM +0200 7/5/07, Hans Mittendorf wrote:
>I would like to automate a value running up and down between 0 and 1, maybe at different speeds. Does someone has an idea of an existing patch that does it?

line or line~or maybe tri~, depending on what you want to do. There are a lot of other choices, as well.

-C


Chris Muir | "There are many futures and only one status quo.
cbm@well.com | This is why conservatives mostly agree,
http://www.xfade.com | and radicals always argue." – Brian Eno


July 5, 2007 | 4:51 pm

cool man, but how do you run it up and down?

I made a patch with counter by now which does it, but its not as elegant….


July 5, 2007 | 4:58 pm

Oh, I see I goes up and down!wow


July 5, 2007 | 9:09 pm

you could hire a slave from a developping
country and tell him to type "0.00, 0.01, 0.02, 0.03 …"
for you.

fi you hit him hard enough he also might be able to
count backwards.(otherwise use a [coll])


July 6, 2007 | 6:29 am

The problem with ramping was solved elegantly, intelligently and peacefully a while ago.
The one you seem to have will need a different forum to solve it.

Cheers

Keep on ramping….


August 20, 2007 | 7:55 pm

for some craziness use index~ to read sample points from a buffer~. you’ll get values all over the place from -1 to 1, so add 1, then multiply by a half to get 0 to 1. So your curve is the actual waveform itself, pretty cool.

–CJ


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