[PD] wave morphing

Steffen stffn at dibidut.dk
Mon Jan 15 14:37:35 CET 2007

On 15/01/2007, at 11.49, Roman Haefeli wrote:

> exactly, and since [wrap~] gives you the difference between the  
> largest
> integer not exceeding X and X, it will always give you 0, when X is an
> integer.

That's how i read it too. But following that: If 0 (zero) is an  
integer (it normally is, right?), then the largest integer not  
exceeding 0 is 0, and the difference is 0-0=0. Problem being that   
wrap~ of the signal 0 gives 1, not 0.

I'd like to know too, as i find the description from the help patch  
confusing (when the input is  integers). As i understand what wrap~  
does (again, on the integer domain), it's like a function f: Z ->  
{0,1} where f(N)=0 and f(Z\N)=1 (where N is the numbers 1,2,3,.. and  
Z is the numbers ...,-1,0,1,...).

> the output of [wrap~] is always => 0 and < 1.

Again, i agree that from the description it would make sense if that  
intact was the output domain.  But it doesn't match the experience  
using wrap~.

More information about the Pd-list mailing list