Re: WaveShaperNode.curve issues

I just remembered that roc brought up some issues on WaveShaperNode
recently...

--
Ehsan
<http://ehsanakhgari.org/>


On Mon, May 6, 2013 at 2:52 AM, Robert O'Callahan <robert@ocallahan.org>wrote:

> 1) Scripts can modify the content of the array at any time and it's not
> clear when those changes take effect.
> 2) This is especially acute when script can actually replace the "curve"
> array with a different JS array altogether (at any time).
> 3) What if the array is empty?
> 4) What if it contains infinities or NaNs?
>
> We could avoid all these problems by changing from "curve" to a method
> "setCurve(Float32Array)" that throws if the array is empty or contains
> non-finite values, and neuters the array so that no copy is required but JS
> can't modify the data anymore. But can we do that, or are we forced to
> support this for compatibility?
>
> Rob
> --
> q“qIqfq qyqoquq qlqoqvqeq qtqhqoqsqeq qwqhqoq qlqoqvqeq qyqoquq,q
> qwqhqaqtq qcqrqeqdqiqtq qiqsq qtqhqaqtq qtqoq qyqoquq?q qEqvqeqnq
> qsqiqnqnqeqrqsq qlqoqvqeq qtqhqoqsqeq qwqhqoq qlqoqvqeq qtqhqeqmq.q qAqnqdq
> qiqfq qyqoquq qdqoq qgqoqoqdq qtqoq qtqhqoqsqeq qwqhqoq qaqrqeq qgqoqoqdq
> qtqoq qyqoquq,q qwqhqaqtq qcqrqeqdqiqtq qiqsq qtqhqaqtq qtqoq qyqoquq?q
> qEqvqeqnq qsqiqnqnqeqrqsq qdqoq qtqhqaqtq.q"
>

Received on Monday, 13 May 2013 04:26:47 UTC