Author Topic: How to play sound with given frequency: beep(530Hz, 800ms)  (Read 9285 times)

Fred Chuit

  • Newbie
  • *
  • Posts: 18
How to play sound with given frequency: beep(530Hz, 800ms)
« on: January 19, 2009, 08: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

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: How to play sound with given frequency: beep(530Hz, 800ms)
« Reply #1 on: January 19, 2009, 09: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.