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 <aravi...@ncsu.edu> 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