I'm working on a program where I'm trying to write multiple tones per frame of audio to a .wav or .au file.
The best solution to this problem that I've found so far is over here : java - How to play a set of frequencies (Chords) at the same time with javax.sound.sampled package - Stack Overflow
However that seems like it has a number of issues with what I'm trying to accomplish. One issue is that I'm trying to create a file that can range from 20hz to 20kHZ (human range approximately). Ideally at any frame then every frequency in that range could be played, though most of the times it will only be a handful. So the memory cost would be huge using this method it seems. Is there some alternate way that would be 'cheaper'?
Thanks! And I'll post some code samples this weekend if that will help.