May I know what do you mean by "make a similar oscillator "?
Do you want to generate sound output dynamically at run time?
I did something like that more than 10 years ago (before javax.sound was available), please check out [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=17.0]Fourier Synthesis[/url].
I learned it from some code available on the web at that time.
The source code for that applet I have created is available,too! But I did not work on similar topic for a long time.
Your links provide a lot of useful information. (I checked out those pagaes, but I did not have time to study or test it).