[Math] Equation for a sinusoidal wave with changing frequency

signal processingwave equation

I would like to find a sinusoidal wave whose period or frequency change to half (or double) with every step, someting like this

enter image description here

But I cant find the precise coefficients for the period to decrease (or increase) twice. Can someone help me?

I want to use it to map the different pitch (or notes) of voice, to certain values.

In our speech, and singing, the range of the first octave is half of the next octave, so I need a function whose period is twice as big each time to cover all the octaves. it need not be a sinusoidal it can be any periodical function.

Best Answer

The "correct" way of specifying a signal with time-varying frequency $f(t)$ is

$s(t) = \sin(2 \pi \int_0^t f(t) dt)$

In other words the phase is the integral of the instantaneous frequency $f(t)$. This is best checked when you consider the case when $f(t)$ is a step function, or linearly increasing.

If you now want the frequency to increase from a certain value at $t_0$ to twice the value at some time $t_1$, you need to choose an appropriate function $f(t)$ which does

$f(t_1) = 2 f(t_0)$

The precise form of $f$ can be chosen freely to meet your demand. If you want exponential behavior, i.e. doubling every $T_0$ with frequency of $f_0$ at time = 0 the following would be a possible choice

$f(t) = f_0 2^{t/T_0}$

Related Question