Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Writing multiple tones per frame to .wav or .au

1059467Dec 10 2013

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.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 7 2014
Added on Dec 10 2013
0 comments
1,256 views