File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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

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

I agree. Here's the link:
subject: musical notes in JavaScript
It's not a secret anymore!