function editor

Nov 22, 2006 at 4:39pm

function editor

hi,
I’m trying to use the $1 message to replace the “setrange-values” in a function editor. Is this possible? Or am I looking in the wrong direction.

Thanks!

Cheers, Jeroen

#28836
Nov 22, 2006 at 5:18pm

On 22 nov. 06, at 17:39, jeroen900 wrote:

>
> hi,
> I’m trying to use the $1 message to replace the “setrange-values”
> in a function editor. Is this possible? Or am I looking in the
> wronng direction.

Hi,

In the function object, the range is defined by two values, so you
probably need a $1 and $2 somewhere, or use a pack/pak object.
Anyway, this is definitely possibile.

ej

#P window setfont “Sans Serif” 9.;
#P flonum 266 65 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 226 65 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 186 90 91 196617 pak setrange 0. 1.;
#P flonum 76 65 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 120 65 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 76 90 54 196617 pack 0. 1.;
#P message 76 123 79 196617 setrange $1 $2;
#P user function 76 151 276 251 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 191.489349 0.960667 0;
#X add 1000. 1.31 0;
#X domain 1000.;
#X range 0. 1.31;
#X done;
#P fasten 5 0 0 0 191 143 81 143;
#P connect 7 0 5 2;
#P connect 6 0 5 1;
#P connect 4 0 2 0;
#P connect 3 0 2 1;
#P connect 2 0 1 0;
#P connect 1 0 0 0;
#P window clipboard copycount 8;

#88913
Nov 23, 2006 at 10:09am

Hi,

You’r patch made it clear and… obvious : )
thanks a lot!

grtz, J

#88914

You must be logged in to reply to this topic.