NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
June 25, 2018, 06:44:28 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
"Choose a job you love, and you will not have to work for a day in your life." ...Confucius (551-479 BC)
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: How to play sound with given frequency: beep(530Hz, 800ms)  (Read 8464 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
Fred Chuit
Newbie
*
Offline Offline

Posts: 18



«
Embed this message
on: January 19, 2009, 07:57:18 pm » posted from:Meppel,Drenthe,Netherlands

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
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #1 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.
Logged
Pages: [1]   Go Up
  Print  
"Choose a job you love, and you will not have to work for a day in your life." ...Confucius (551-479 BC)
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
A PROG WHICH CAN PLAY SOUND FILES IN SEQUENCE LILE WINAMP
Misc
rupesh_ucer@sify.com 1 19577 Last post May 09, 2018, 03:54:01 pm
by Fabianz
It is fun to play with prism. (light trace and intensity due to refraction)
Optics
Fu-Kwun Hwang 2 29750 Last post July 25, 2012, 08:23:38 am
by Fu-Kwun Hwang
Superposition of two waves (same frequency, different amplitude, phase/dir )
Wave and Fluid
Fu-Kwun Hwang 1 25563 Last post October 23, 2017, 08:29:35 am
by Jocafis
Suposition of Two Waves (with different phases,same amplitude,frequency)
Wave and Fluid
Fu-Kwun Hwang 0 14522 Last post December 22, 2008, 09:56:12 am
by Fu-Kwun Hwang
EJS version of Fourier Synthesis (You can hear the sound,too!)
wave and fluid
ahmedelshfie 6 11311 Last post September 24, 2010, 08:44:25 pm
by ahmedelshfie
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.054 seconds with 22 queries.since 2011/06/15