Waveform sync question

Status
Not open for further replies.

UHF

Well-known member
Hello, I'm creating a synth and am considering how to implement oscillator sync.
Are the waveforms already in sync (start from zero amplitude) when the frequency is set for a new note?
Would I set phase(angle) to zero for each waveform to set them in sync or have I misunderstood what sync is?

Thanks for any replies.
 
Would I set phase(angle) to zero for each waveform to set them in sync or have I misunderstood what sync is?

Yes, that's correct.

Also make sure you use AudioNoInterrupts(), as documented here, and also mentioned in the waveform docs in the design tool.

https://www.pjrc.com/teensy/td_libs_AudioProcessorUsage.html

This is needed to prevent the slim chance that the audio library might run during the brief time between multiple waveform.phase(angle) lines in your code. When you call AudioInterrupts() after changing all the settings, you can be sure all will take effect on the next update.
 
Status
Not open for further replies.
Back
Top