Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play variable tone with Java?

Back in my high school Pascal class, I had a fun little program that would take in an integer and then play a tone using the system speaker. The pitch of the tone would vary, based on the int.

Does functionality like this exist in the Java world? Would an alternative be to pull in a wav or ulaw, and then change the frequency?

Thanks,
IVR Avenger

like image 342
IVR Avenger Avatar asked Oct 08 '10 17:10

IVR Avenger


2 Answers

You could use JFugue

like image 199
Adam Avatar answered Sep 28 '22 04:09

Adam


You might enjoy this simple example that constructs and plays pure tones.

like image 31
trashgod Avatar answered Sep 28 '22 05:09

trashgod