- From: Peter van der Noord <peterdunord@gmail.com>
- Date: Sun, 22 Jul 2012 14:58:28 +0200
- To: public-audio@w3.org
Received on Sunday, 22 July 2012 12:58:55 UTC
Hmmm, my math knowledge isnt of the level that i have an immediate idea about how that would work :) > If you set the cos wave to [0, 1] and the sin wave to [0, 0] you just > get a pure sine wave. > If you flipped those two around you still get a sine wave, but it's > rotated 90' in phase. > If the waves are [0, 0, 1] and [0, 0, 0] you get a sine wave at double > the harmonic frequency. > For each component "n" in the two tables the amplitude of the frequency > (f * n) is proportional to sqrt(cos_table[n]^2 + sin_table[n]^2) > The phase is atan2(sin_table[n], cos_table[n]) > At least that's how I understand it :) > Ray
Received on Sunday, 22 July 2012 12:58:55 UTC