pattrstorage : fade ?

Feb 18, 2008 at 2:49pm

pattrstorage : fade ?

It’s about the “fade” messsage to pattrstorage .

Does it do anything ?
Is there such a message ?

I’d like to avoid [line] for interp between presets, but no doc on the fade message.

thanks

#35870
Feb 19, 2008 at 1:03am

yes it does exist, similar to interpolations ,probably simpler and different maths behind though and maybe with less interpolation options (?)

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 602 150 27 196617 + 1;
#P newex 563 150 27 196617 + 1;
#P user radiogroup 602 98 18 48;
#X size 3;
#X offset 16;
#X inactive 0;
#X itemtype 0;
#X flagmode 0;
#X set 1;
#X done;
#P user radiogroup 563 98 18 48;
#X size 3;
#X offset 16;
#X inactive 0;
#X itemtype 0;
#X flagmode 0;
#X set 0;
#X done;
#P message 641 98 62 196617 0. , 1. 2000;
#P newex 641 127 50 196617 line 0. 5.;
#P flonum 641 167 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 524 192 84 196617 pak recall 0 0 0.;
#P newex 417 148 27 196617 + 1;
#P newex 378 148 27 196617 + 1;
#P newex 288 148 27 196617 + 1;
#P user radiogroup 288 96 18 48;
#X size 3;
#X offset 16;
#X inactive 0;
#X itemtype 0;
#X flagmode 0;
#X set 1;
#X done;
#P user radiogroup 417 96 18 48;
#X size 3;
#X offset 16;
#X inactive 0;
#X itemtype 0;
#X flagmode 0;
#X set 1;
#X done;
#P user radiogroup 378 96 18 48;
#X size 3;
#X offset 16;
#X inactive 0;
#X itemtype 0;
#X flagmode 0;
#X set 0;
#X done;
#P message 456 96 62 196617 0. , 1. 2000;
#P newex 456 125 50 196617 line 0. 5.;
#P newex 40 64 53 196617 autopattr;
#X prestore multiSlider 32 0 1. 0.88764 0.550562 0.370787 0.213483 0.101124 -0.078652 -0.146067 -0.348315 -0.438202 -0.573034 -0.662921 -0.707865 -0.752809 -0.820225 -0.820225 -0.820225 -0.775281 -0.685393 -0.617977 -0.52809 -0.460674 -0.303371 -0.213483 -0.078652 0.011236 0.101124 0.258427 0.393258 0.505618 0.595506 0.752809;
#P objectname u794000002;
#P user multiSlider 40 95 237 91 -1. 1. 32 2681 47 0 1 1 0 20 0;
#M frgb 255 255 255;
#M brgb 80 204 10;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P objectname multiSlider;
#P flonum 456 165 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 339 190 129 196617 pak fade 0 0 0.;
#P message 288 190 49 196617 store $1;
#P newex 288 221 67 196617 pattrstorage;
#X client_rect 0 0 640 240;
#X storage_rect 0 0 640 240;
#P objectname u073000001;
#P connect 5 0 4 0;
#P fasten 17 0 16 0 646 114 646 114;
#P connect 16 0 15 0;
#P connect 6 0 3 0;
#P fasten 7 0 6 0 461 112 461 112;
#P fasten 14 0 0 0 529 215 293 215;
#P connect 21 0 14 2;
#P connect 20 0 14 1;
#P connect 15 0 14 3;
#P connect 18 0 20 0;
#P connect 19 0 21 0;
#P connect 13 0 2 2;
#P connect 9 0 13 0;
#P connect 12 0 2 1;
#P connect 8 0 12 0;
#P connect 11 0 1 0;
#P connect 10 0 11 0;
#P connect 3 0 2 3;
#P connect 1 0 0 0;
#P fasten 2 0 0 0 344 214 293 214;
#P window clipboard copycount 22;

Quote: Kyred wrote on Mon, 18 February 2008 15:49
—————————————————-
> It’s about the “fade” messsage to pattrstorage .
>
> Does it do anything ?
> Is there such a message ?
>
> I’d like to avoid [line] for interp between presets, but no doc on the fade message.
>
> thanks
—————————————————-

#122830
Feb 19, 2008 at 10:55am

I wrote a reply, but lost it…so this one will be shorter :):

The fade message, it seems, does the same as normal float input OR the recall message. I wonder if there really is any added functionality?

I used lines to interpolate before, but their annoying input format, separate event generating and the inability to set the ramp time during a fade (middle input doesn’t work at that time) made me use a (q)metro with a timer. This way, i can sync output independent of frame rate:

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 441 132 47 196617 * 1000.;
#P flonum 441 114 38 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 351 79 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 314 79 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 290 120 84 196617 pak recall 1 2 0.;
#P flonum 248 96 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 426 27 77 196617 start fade;
#P comment 450 46 77 196617 start this first;
#P toggle 430 46 15 0;
#P button 405 27 15 0;
#P newex 430 64 52 196617 metro 40;
#P message 230 96 14 196617 3;
#P message 230 78 14 196617 2;
#P message 230 60 14 196617 1;
#P message 183 96 43 196617 store 3;
#P message 183 78 43 196617 store 2;
#P message 183 60 43 196617 store 1;
#P flonum 144 60 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname err;
#P newex 88 60 53 196617 autopattr;
#X prestore err 1 0 2.;
#P objectname u130001436;
#P newex 183 150 67 196617 pattrstorage;
#X client_rect 0 0 640 240;
#X storage_rect 0 0 640 240;
#P objectname u514001435;
#P newex 405 193 52 196617 change 0.;
#P newex 405 174 50 196617 clip 0. 1.;
#P newex 405 154 46 196617 / 1000.;
#P newex 405 87 35 196617 timer;
#P comment 482 114 73 196617 duration (sec);
#P comment 144 44 106 196617 store some junk first;
#P connect 25 0 3 1;
#P connect 24 0 25 0;
#P connect 12 0 6 0;
#P connect 13 0 6 0;
#P connect 14 0 6 0;
#P connect 22 0 21 1;
#P connect 5 0 21 3;
#P connect 23 0 21 2;
#P connect 21 0 6 0;
#P connect 20 0 6 0;
#P connect 17 0 15 0;
#P connect 3 0 4 0;
#P connect 2 0 3 0;
#P connect 16 0 2 0;
#P connect 15 0 2 1;
#P connect 11 0 6 0;
#P connect 10 0 6 0;
#P connect 9 0 6 0;
#P connect 4 0 5 0;
#P window clipboard copycount 26;

#122831
Feb 19, 2008 at 11:59am

#122832

You must be logged in to reply to this topic.