Forums > MaxMSP

Reversing the points in function

August 30, 2006 | 4:34 pm

Does anyone know a way of reversing or mirroring the points in the function object?
for example, if i’ve created a complex envelope using function and want the same envelope to be reversed, is it possible?

Thank you
Chris


August 30, 2006 | 5:12 pm


August 30, 2006 | 6:03 pm

this is kind of what i want, but is there a way of doing it with just one function object?


August 30, 2006 | 6:22 pm


August 30, 2006 | 6:47 pm

this is perfect. Thank you very much.


August 31, 2006 | 4:15 pm

on closer inspection this doesn’t quite do what i want. I need the envelope to flip vertically, not horizontaly. Is this possible?

I have tried to do it myself but cannot figure it out.

Thank you
Chris


August 31, 2006 | 6:17 pm


August 31, 2006 | 6:22 pm

Il giorno 31/ago/06, alle ore 18:15, Chris Hipgrave ha scritto:
>
> on closer inspection this doesn’t quite do what i want. I need the
> envelope to flip vertically, not horizontaly. Is this possible?
>
> I have tried to do it myself but cannot figure it out.
>
> Thank you
> Chris

try that:

max v2;
#N vpatcher 538 52 928 550;
#P toggle 143 96 15 0;
#P window setfont "Sans Serif" 9.;
#P message 67 96 33 196617 dump;
#P user function 67 121 267 221 1 1 0 0;
#X frgb 82 82 82;
#X brgb 204 204 204;
#X rgb2 85 85 85;
#X rgb3 255 255 255;
#X rgb4 0 0 0;
#X rgb5 0 0 0;
#X add 0. 0. 0;
#X add 164.893616 1. 0;
#X add 234.042542 0.413333 0;
#X add 526.595703 0.68 0;
#X add 1000. 0. 0;
#X domain 1000.;
#X range 0. 1.;
#X done;
#P message 105 96 33 196617 clear;
#P newex 180 277 48 196617 !- 1000.;
#P newex 143 231 27 196617 + 1;
#P newex 143 254 47 196617 gate 2 1;
#P button 67 41 15 0;
#P newex 67 70 87 196617 b 3;
#P newex 180 300 61 196617 pack 0. 0.;
#P newex 180 231 61 196617 unpack 0. 0.;
#P user function 67 325 267 425 1 1 0 0;
#X frgb 82 82 82;
#X brgb 204 204 204;
#X rgb2 85 85 85;
#X rgb3 255 255 255;
#X rgb4 0 0 0;
#X rgb5 0 0 0;
#X domain 1000.;
#X range 0. 1.;
#X done;
#P connect 4 0 3 0;
#P connect 3 0 10 0;
#P connect 10 0 9 0;
#P connect 8 0 0 0;
#P lcolor 6;
#P connect 2 0 0 0;
#P connect 3 1 8 0;
#P connect 3 2 11 0;
#P connect 11 0 6 0;
#P lcolor 6;
#P connect 6 0 5 0;
#P connect 9 2 1 0;
#P connect 1 0 5 1;
#P connect 5 1 7 0;
#P connect 7 0 2 0;
#P connect 5 0 2 0;
#P connect 1 1 2 1;
#P pop;


September 2, 2006 | 4:21 pm

Quote: Emmanuel Jourdan wrote on Thu, 31 August 2006 12:17
—————————————————-
So you just need to figure out
> what’s the correct offset value.
>
> HTH,
> ej
—————————————————-

Hi,

i’ve tried to do this but failed. I’m sure it’s easy when you know how. Could you post up the correct example please?

Sorry to bug you
Chris


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