GeeCON Prague 2014*
The moose likes HTML, CSS and JavaScript and the fly likes musical notes in JavaScript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "musical notes in JavaScript" Watch "musical notes in JavaScript" New topic
Author

musical notes in JavaScript

Kevin Tysen
Ranch Hand

Joined: Oct 12, 2005
Posts: 255
I'm wondering if there is any way to use JavaScript to play musical notes. Nothing really fancy, just a tone at a certain frequency for about one second, something like that. Or even just a beep or a buzz or something.
My book on JavaScript says nothing about sound. (It's a little old.)
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Because JavaScript does not have a sound api, but people have made one:

http://www.schillmania.com/projects/soundmanager2/

Eric
 
GeeCON Prague 2014
 
subject: musical notes in JavaScript