Re: [dev-servo] Implementing periodic wave options for Oscillator node

2018-11-27 Thread Manish Goregaokar
It doesn't matter for normalization.

The second half of that segment is what's relevant: you need to calculate
the maximum value of a single cycle of the wave, and then scale the wave
down by that. No need to worry about N.

It's fine if you don't implement this for now, though.

Thanks,
-Manish Goregaokar


On Tue, Nov 27, 2018 at 4:54 PM Avanthikaa Ravichandran 
wrote:

> Hi,
> We are implementing the periodic wave options for the oscillator node and
> the formula as mentioned in the link below uses a 'N' which is said to be a
> power of 2. How do we know what the value of N is? Is this set by the user
> or do we assume it to be some arbitrary power of 2 > 0?
> https://webaudio.github.io/web-audio-api/#dictdef-periodicwaveoptions
>
> Thank you
> ___
> dev-servo mailing list
> dev-servo@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-servo
>
___
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo


[dev-servo] Implementing periodic wave options for Oscillator node

2018-11-27 Thread Avanthikaa Ravichandran
Hi,
We are implementing the periodic wave options for the oscillator node and
the formula as mentioned in the link below uses a 'N' which is said to be a
power of 2. How do we know what the value of N is? Is this set by the user
or do we assume it to be some arbitrary power of 2 > 0?
https://webaudio.github.io/web-audio-api/#dictdef-periodicwaveoptions

Thank you
___
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo