[music-dsp] How to lock phase of sinewave generators...
zero at nullpointer.co.uk
zero at nullpointer.co.uk
Sun Aug 5 06:37:00 EDT 2001
OOpps.
Sorry. I sent the blank mail be accident...
Quesion is..
If I want to write an additive sine system or such like it would be useful to be able to ensure that wave produced at different freqs had the same phase start point.. At the moment I have tried both lookup tables and a sine-cosine increment method. Wheres the looukup table produces the waves in the same phase (because obviously they all use the same table , and therefore start/wrap point) the quality is not great when adding results (its obviously getting distorted .. sounds squarer) The sine-cosine algo porduces better quality waves but each generated wave is on a different increment loop and therefore different phase...
I understand there is a way of using a lookup table for phase reference and then basing the sine on that lookup somehow (keeping in phase).
Anybody want to help?
P.S. thanks for your last posts I am now running 64 frame blocks from a multiple buffer and on my crappy soundcard (PC) I can get about 40ms medium load with no adc. The good news is that my app reported almost double FPS on the screen update, so a massive improvement in execution time as you all predicted.. thanks!
Tom
________________________________________________________
C:\AUTOEXEC.BAT
C:\REM [Header]
C:\>
C:\>PATH=C:\PERL\BIN;C:\WINDOWS\COMMAND;\C:jdk1.2.2\bin
________________________________________________________
http://www.nullpointer.co.uk
(all suffixes enabled)
dupswapdrop -- the music-dsp mailing list and website: subscription info,
FAQ, source code archive, list archive, book reviews, dsp links
http://shoko.calarts.edu/musicdsp/
More information about the music-dsp
mailing list