[L2Ork-dev] wrap~ bug

Jonathan Wilkes jon.w.wilkes at gmail.com
Tue Apr 7 21:17:23 EDT 2020


Hi Julian,

I fixed the bug in the "compatibility" handler which fixes this bug.
Now wrap~ should work
correctly by default, and users who need the old broken behavior can
still get it using the
"compatibility" method.

It was a single-line fix. But I don't currently have any regression
tests for signal
objects, so I added a utility to do that for with wrap~.

This will be in the next Purr Data release. If you need it before then
you can check the
CI on git.purrdata.net and download a binary when (if) it finishes successfully:

https://git.purrdata.net/jwilkes/purr-data/pipelines/1743

(Just click your platform and there should be a download link on the next page.)

Best,
Jonathan


On Tue, Mar 31, 2020 at 9:45 AM Julian Simmons <info at juliansimmons.com> wrote:
>
> 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
> _______________________________________________
> L2Ork-dev mailing list
> L2Ork-dev at disis.music.vt.edu
> https://disis.music.vt.edu/listinfo/l2ork-dev


More information about the L2Ork-dev mailing list