beginners question

Aug 31, 2007 at 2:21pm

beginners question

hey, i’m new into max and im looking for a funktion which allows me
to set a range of numbers (start: 0,99 end: 0,00) and a timeinterval
(300 ms) and count down the numbers from 0,99 to 0,00 in 300 ms if it
recieves a bang.

there must be an easy way but i’ve got no idea how to patch this.

i want to scale down the volume in 300 ms if a bang recieves.
anny ideas. thanks for your help.

torsten

#33482
Aug 31, 2007 at 2:46pm

the line object will go from one number to another, in a given period of time

this example sounds a little crunchy in my example(whereas line~ sounds smooth)

but thatll give you an idea

max v2;
#N vpatcher 157 301 757 701;
#P window setfont “Sans Serif” 9.;
#P flonum 275 240 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 215 281 15 0;
#P window linecount 1;
#P newex 239 282 31 196617 dac~;
#P newex 239 110 61 196617 cycle~ 440;
#P newex 239 240 27 196617 *~;
#P button 275 140 35 0;
#P message 275 187 74 196617 0.99 , 0. 300;
#P newex 275 212 40 196617 line 0.;
#P connect 4 0 3 0;
#P connect 3 0 5 0;
#P fasten 6 0 5 0 220 302 233 302 233 279 244 279;
#P connect 0 0 3 1;
#P connect 3 0 5 1;
#P connect 2 0 1 0;
#P connect 1 0 0 0;
#P connect 0 0 7 0;
#P pop;

On 8/31/07, Vektorjunkies wrote:
> hey, i’m new into max and im looking for a funktion which allows me
> to set a range of numbers (start: 0,99 end: 0,00) and a timeinterval
> (300 ms) and count down the numbers from 0,99 to 0,00 in 300 ms if it
> recieves a bang.
>
> there must be an easy way but i’ve got no idea how to patch this.
>
> i want to scale down the volume in 300 ms if a bang recieves.
> anny ideas. thanks for your help.
>
> torsten
>
>
>
>

#111631
Aug 31, 2007 at 3:30pm

The line or line~ object is what you want. I have an example,
FadeFromHere, on my web site that does something similar.