Background: I'm writing a synthesizer with the creative limitation that it uses a single oscillator and a single amplitude multiplier.
$y=\sin(t*f(t))*a(t)$
$(t=$time, $f=$frequency, $a=$ amplitude$)$
What I'd like to do is cheat a bit and create something that approximates the sound of two sine waves using the above formula.
To put this mathematically,
What functions, $a$ and $f$, can I use in the above formula to get as close as possible to the following formula:
$$y=\sin(t*f_1)*a_1+\sin(t*f_2)*a_2$$
I don't believe that it's possible to find an exact way to emulate the second formula with the first but I'm assuming one could get pretty close.
Hint:
If you allow variable amplitude and variable frequency, there is more than you need. You can try to construct a phase function ($t\,f(t)$) that takes the values $k\pi$ at the successive zeroes of $y$, then find the amplitude function as
$$a(t)=\frac{y(t)}{\sin(t\,f(t))}.$$
Needless to say, this is more complex to design than a double oscillator.