Forums > MaxMSP

interpolation times


FP
January 18, 2007 | 12:19 pm

hi,

i need help, please.

i wonder how to do to have several different time interpolation with only one pattrstorage.
does somebody know ?

and if it’s not possible with only one pattrstorage, how do you do to have only one xml file for all pattrstorage ?

thx.

here’s the beginning patch:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 565 203 77 196617 pvar UItime[2];
#P flonum 152 226 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname UItime[2];
#P flonum 51 226 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname UItime[1];
#P newex 412 202 77 196617 pvar UItime[1];
#P newex 258 61 58 196617 s Pstorage;
#P message 258 42 191 196617 priority time[1] -1 , priority time[2] -1;
#P user multiSlider 152 242 74 8 0. 127. 2 2664 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#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 UIinterpTime[2];
#P user multiSlider 51 242 74 8 0. 127. 2 2664 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#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 UIinterpTime[1];
#P newex 389 121 77 196617 pvar UItime[1];
#P comment 88 228 30 196617 time;
#P newex 300 140 70 196617 pattr time[2];
#X prestore 1 0 0;
#P objectname time[2];
#P newex 300 121 77 196617 pvar UItime[2];
#P message 48 23 78 196617 storagewindow;
#P newex 191 40 58 196617 r Pstorage;
#P newex 389 140 70 196617 pattr time[1];
#X prestore 1 0 0;
#P objectname time[1];
#P newex 504 268 83 196617 pvar multislider;
#P newex 356 268 67 196617 pvar number;
#P user multiSlider 152 268 74 41 0. 127. 2 2664 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#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 comment 188 228 30 196617 time;
#P newex 504 203 59 196617 pattr multi;
#X prestore 1 0 0;
#P objectname multi;
#P newex 356 202 54 196617 pattr num;
#X prestore 1 0 0;
#P objectname num;
#P comment 88 270 34 196617 value;
#P number 52 269 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number;
#P message 146 40 43 196617 store 2;
#P message 100 40 43 196617 store 1;
#P message 77 40 14 196617 2;
#P message 60 40 14 196617 1;
#P newex 60 71 161 196617 pattrstorage test @changemode 1;
#X priority time[1] -1;
#X priority time[2] -1;
#X client_rect 24 74 664 314;
#X storage_rect 24 74 664 314;
#P objectname test;
#P fasten 2 0 0 0 82 61 65 61;
#P fasten 1 0 0 0 65 61 65 61;
#P connect 22 0 23 0;
#P fasten 17 0 16 0 305 163 295 163 295 115 305 115;
#P fasten 13 0 19 0 394 162 383 162 383 118 394 118;
#P connect 19 0 13 0;
#P connect 16 0 17 0;
#P fasten 12 0 8 0 509 290 499 290 499 196 509 196;
#P fasten 11 0 7 0 361 289 351 289 351 195 361 195;
#P fasten 15 0 0 0 53 66 65 66;
#P fasten 14 0 0 0 196 61 65 61;
#P connect 8 0 12 0;
#P fasten 3 0 0 0 105 61 65 61;
#P fasten 4 0 0 0 151 61 65 61;
#P window clipboard copycount 28;


January 18, 2007 | 8:13 pm

fp wrote:
> i wonder how to do to have several different time interpolation with
> only one pattrstorage. does somebody know ?

probably Jeremy… ;-)

Your patch unfortunately doesn’t tell too much what you want to do, I
just see that you use two pvars with the same reference. A bug in Max
prevented at least in the past that this would work reliably.

I think in general you can recall only parts of a preset. and leave
other stored objects remain with their values. And if you do
interpolation over time you have to direct the recalling to just those.
If thats what you are after…

Stefan


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


January 18, 2007 | 9:03 pm

Is this true?

Do you have any information or specifics on this bug? It might
explain some oddities I was having with a patch. Much thanks!

On Jan 18, 2007, at 3:13 PM, Stefan Tiedje wrote:

>
> Your patch unfortunately doesn’t tell too much what you want to do,
> I just see that you use two pvars with the same reference. A bug in
> Max prevented at least in the past that this would work reliably.
>

v a d e //

http://www.vade.info
abstrakt.vade.info



FP
January 18, 2007 | 11:36 pm


January 19, 2007 | 3:36 pm

vade wrote:
> Is this true?
>
> Do you have any information or specifics on this bug? It might explain
> some oddities I was having with a patch. Much thanks!

Maybe two or three years ago I came across it and reported, the replies
did not made me believe it will ever be corrected…
I was pointed to pattr, which is fine and better in most cases, but it
has not multiple outputs. A pattrbackward or even better a pattrvar with
multiple ins and outs would happily make me skip pvar for the rest of my
patching life…


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


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