I want to write a game applet that plays complex series of tones and accepts keyboard input. Unfortunately, I have no experience with Java applets other than the basic mechanics of using javac, jar, awt, and <applet>.
My program needs to play sine waves of various frequencies and amplitudes. It needs to play these tones overlapping (one tone may continue while others start; each tone has an independent lifetime).
I've found some examples on the Web but am not satisfied with them and so I'm hoping that someone out there can give me a few samples of code to get me started. I don't want to use the very high level facilities such as JavaSound or MIDI. Rather, I want to calculate sine waves "on the fly" and play them from memory.
I'll give more specifications, if necessary, in response to your questions.