Just wondering if there is a library in Java like the module PyAudiere in Python, that simply allows you to create tones and play them, like this sample Python code:
device = audiere.open_device()
tone = device.create_tone(500) #create a 500hz tone
tone.play()
tone.stop()
This simply assigns a variable to your default sound device, and then makes a tone for that device and plays it then stops it. Are there any libraries like this that are as simple to use?
I appreciate any and all feedback, thanks! 😀
It is pretty simple to generate a sound in memory.
E.G.
The important part of generating the tone (and storing it in a
Clip) is encompassed in this code:Beeper.java
This is self contained code that shows the GUI seen above. It is a hybrid that will work either as a free floating frame, or embedded as an applet.