Re: AnalyzerNode - magnitude/phase

Hello Chris,

Friday, September 27, 2013, 11:22:52 AM, you wrote:

> i) Allow getFloatFrequencyData() to return an array of complex values somehow.

Seems more technically correct and less likely to be implemented (oh
no, complex numbers)

> ii) Add methods for getRealFrequencyData() and getImaginaryFrequencyData()

ditto (name is correct but scary)

> iii) Add getFloatPhaseData() which would return the phase of the
> calculated spectrum, and leave getFloatFrequencyData() returning the
> magnitude.

That seems like the best option to me. And yes, getting the phase is
useful. What about an allpass filter as an example? Square waves in,
tilted square waves out, that sort of thing.


-- 
Best regards,
 Chris                            mailto:chris@w3.org

Received on Friday, 27 September 2013 17:18:56 UTC