[LAD] Determining Phase

Emanuel Rumpf xbran at web.de
Sat Jun 25 22:04:43 UTC 2011


2011/6/25 Fons Adriaensen <fons at linuxaudio.org>:
> On Sat, Jun 25, 2011 at 01:55:05PM -0500, Gabriel M. Beddingfield wrote:
>
>> Do you mean... for a very simple sine wave?
>>
>> Assuming yes:
>>
>>   p = asin( x / A )
>>
>> Where:
>>
>>   A is the amplitude of the sine wave

you mean the maximal amplitude (-MAX <= x <= +MAX) , I guess ?

>>   x is the value of the sample (-A <= x <= A)
>>   p is the phase of the wave in radians (-pi/2 <= p <= pi/2)
>
> And what if the phase is < -pi/2 or > +pi/2 ?
>
since x <= A (always), that result is not possible

-- 
E.R.



More information about the Linux-audio-dev mailing list