help: new sine with shifted phase expression
help: new sine with shifted phase expression
This expression: sin(2*pi*f*t), I want it to create a sine with a few degrees shifted phase. It might take a long time till I figure it out myself.
Re: help: new sine with shifted phase expression
It took me a couple of minutes, but here you go:
t is time in seconds so for example, at 1kHz 360 degrees is 0.001 seconds or 0.00025 is a 90 degree shift:
sin(2*pi*f*(t+0.00025))
Or in terms of frequency, time = (angle/360)/f
Finally, using the User Constant x for angle we get :
sin(2*pi*f*(t+(x/360)/f))
t is time in seconds so for example, at 1kHz 360 degrees is 0.001 seconds or 0.00025 is a 90 degree shift:
sin(2*pi*f*(t+0.00025))
Or in terms of frequency, time = (angle/360)/f
Finally, using the User Constant x for angle we get :
sin(2*pi*f*(t+(x/360)/f))