Hz to phase-increment value formula


#1

Could someone more mathematically competent than me tell me the formula to convert frequency in Hz to the 32-bit phase-increment value required to drive an oscillator at that frequency?

a|x


#2

A 32 bit integer wraps around at 4294967296 (2^32).
At 48kHz sample rate, a 1Hz frequency corresponds to 89478.48533 (=(2^32)/48000) units in phase increment.


Why is there no frequency dial?
#3

Ah, simples... thank you @johannes!

a|x