Forums > Jitter

I got math problems ^^

August 30, 2009 | 7:58 pm

hey..

i want to make two buttons for controling the playback speed.

the normal black back speed is 1… when i hit the button i want it to add 0.5 to the current speed..

so button press = 1,5 next button press = 2.0 and so on

how can i do so?



Ad.
August 30, 2009 | 9:43 pm

Something like this may help you:

max v2;
#N vpatcher 844 414 1112 665;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 134 149 34 196617 + 0.5;
#P newex 133 170 62 196617 prepend set;
#P window setfont "Sans Serif" 12.;
#P message 110 194 48 196620 2.;
#P window setfont "Sans Serif" 9.;
#P newex 131 97 69 196617 loadmess 0.5;
#P button 23 66 31 0;
#P button 131 70 15 0;
#P comment 150 70 35 196617 reset;
#P comment 55 84 45 196617 Add 0.5;
#P objectname ;
#P fasten 3 0 5 0 28 146 115 146;
#P fasten 6 0 5 0 138 192 115 192;
#P connect 2 0 4 0;
#P connect 7 0 6 0;
#P fasten 4 0 7 0 136 148 139 148;
#P hidden connect 5 0 7 0;
#P pop;

Adrien


August 30, 2009 | 11:28 pm

You might also want to have a look at the [accum] object. The help file should teach you everything you need to know.

lh


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