0
0

How can i change the phase of a sin wave made by DSP_OSCILLATOR in FMOD Ex. I supose DSP creates something like this : sin(2PIft) where f : frequency and t : time; I want sin(2PIft + x) where x is the phase of the function. Help 😮

  • You must to post comments
0
0

Ok you dont give a method to control phase in the software but do you suggest me a trick, technique, method or any way to control it. Mi goal is generate 2 tones, one by the left speaker and one for right, both independent for the other one. When i push START both sounds begin simultaneously, maybe with diferent properties (frequency and volume) or maybe the same. But if want to dephase one… how can i implement it?. I try to program a Timer who count milliseconds before the sounds starts like this :
procedure OnTimer(….) begin
Inc(Count)
if Count = phaseLeftSound then leftSound.playSinWave;
If Count = phaseRightSound then RightSound.playSinWave;
if leftSound.isPlaying and RightSound.isPLaying then StopCounting;

end;
and when i see the output in a real oscilloscope both graphs dont obey the pattern of milliseconds given. In another analisis, I try to calculate J=X/(2PI*f) where J = Time to dephase; X : Phase in Radians; f : Frequency, but in the worst of the cases i need a counter that counts in microseconds. I have a method to do this (microsecs) but if you have another way more efficient please let me now. Thanks anyway. 😳

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.