NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Easy Java Simulations (2001- ) => Questions related to EJS => Topic started by: Fred Chuit on January 19, 2009, 07:57:18 pm



Title: How to play sound with given frequency: beep(530Hz, 800ms)
Post by: Fred Chuit on January 19, 2009, 07:57:18 pm
Dear EJS-users,

I am looking for a way to play a sound with given frequency and time.
Something like: Beep(500Hz,1000ms).

Is something like this possible in EJS?

Already thanks for any help of advice.
Regards,
Fred


Title: Re: How to play sound with given frequency: beep(530Hz, 800ms)
Post by: Fu-Kwun Hwang on January 19, 2009, 08:38:45 pm
I do not think EJS has build in element for sound to play at particular frequency.
But EJS is a code generator: It means that you can add any java library into ejs.
So find a library that can do the things you want and add it to EJS library.
And you can add code to use functions available in the library.