Is there any library in javascript that is similar to JFugue in Java?
Asked Answered
C

1

6

With JFugue, synthesizing music is as simple as this:

Player player = new Player();
player.play("C D E F G A B");

While I do realize that the HTML5 Audio API is still under development for most of the browsers, I am quite unaware if any of these browsers support an API like this.

Ca answered 7/8, 2011 at 7:32 Comment(0)
D
2

You may want to take a look at music.js. They have a demo of it in action here, but the code looks somewhat like what you've described:

var n = Note.fromLatin('A4');

However, I'm not sure that it actually handles the 'play' part, and it likely uses the HTML5 audio tag.

As for what browsers support the audio tag, that's an easier question: http://caniuse.com/#search=audio

Deprecate answered 31/8, 2011 at 19:15 Comment(1)
It's 2016 now, (and your link is dead). Anything changed over the years?Astomatous

© 2022 - 2024 — McMap. All rights reserved.