[L2Ork-dev] wrap~ bug

Julian Simmons info at juliansimmons.com
Tue Mar 31 09:39:15 EDT 2020


Hi All,

Hope this is ok sending this query to this email.

Reporting a bug with wrap~ (this is also present in PD not only in Purr Data - which I’m now using).

wrap
|

0.0 = 0
0.1 = 0.1
0.5 = 0.5
1.0 = 0
1.5 = 0.5


wrap~
|

0.0 = 1
0.1=  0.1
0.5 = 0.5
1.0 = 0
1.5 = 0.5

as you can see there’s an issue with 0 = 1. 


The solution to this bug, is to apply wrap~ twice, so reversing the 0 bug issue,

wrap~
|
wrap~
|

this gives...

0.0 = 0
0.1=  0.1
0.5 = 0.5
1.0 = 1
1.5 = 0.5

0 correctly now = 0, but also 1 = 1, which actually for applying to an offset 0 to 1 phasor~ is helpful, as the full 0 to 1 range of the phasor~ is maintained.

The 

wrap~
|
wrap~
|

solution works, once you realise there IS a wrap~ issue and the trick to resolve it.  But many people may be expecting the 0 ‘zero’ value of wrap~ to act like wrap, it doesn’t. 

Either wrap~ should be made to deliver in the same way as wrap, or we should all be aware of the wrap~ bug and the double wrap~ solution.

Thoughts?

Many thanks,

Julian Simmons
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://disis.music.vt.edu/pipermail/l2ork-dev/attachments/20200331/bf1d4732/attachment.html>


More information about the L2Ork-dev mailing list