Hey all,
I was just looking at Pd 0.42.5's [wrap]. It doesn't use arguments
like zexy's [wrap]. Since each has different behavior, it seems like
a good time to look at how [wrap] should handle its upper and lower
limits. Since [wrap] is closely related to [clip], it should be
structured the same way, in terms of arguments and inlets:
first arg sets min
second arg set max
first inlet accepts numbers to wrap
second inlet sets min
third inlet sets max
arguments default to 0 and 1
zexy's is the same as this, except for the inlets.
.hc
News is what people want to keep hidden and everything else is
publicity. - Bill Moyers
Hallo, Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:
I was just looking at Pd 0.42.5's [wrap]. It doesn't use arguments like zexy's [wrap]. Since each has different behavior, it seems like a good time to look at how [wrap] should handle its upper and lower limits.
Since [wrap] is closely related to [clip], it should be structured the same way, in terms of arguments and inlets:
first arg sets min
second arg set max
first inlet accepts numbers to wrap
second inlet sets min
third inlet sets max
arguments default to 0 and 1
zexy's is the same as this, except for the inlets.
The third [wrap] in maxlib is what you describe, but I think, zexy's wrap behaves differently: It doesn't care about min or max at all, instead it sorts both limits automatically internally.
Frank