X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=c%2Fgoertzel%2Fgoertzel.c;h=85637ae43652097beb365abc5f943cdc8dc8a904;hb=8df6da88c80f10cb96ed53233ce6c4d414368059;hp=d13a874d9612379d94ca4e07c7de72da16ea7294;hpb=227018faa7ccf441dfa41a1f39f17299fc132321;p=mirrors%2FPrograms.git diff --git a/c/goertzel/goertzel.c b/c/goertzel/goertzel.c index d13a874..85637ae 100644 --- a/c/goertzel/goertzel.c +++ b/c/goertzel/goertzel.c @@ -33,6 +33,7 @@ float goertzel_mag(int numSamples,float TARGET_FREQUENCY,int SAMPLING_RATE, floa imag = (q1 * sine) / scalingFactor; magnitude = sqrtf(real*real + imag*imag); + //phase = atan(imag/real) return magnitude; }