Is there a javascript library similar to JFugue in Java?

With JFugue, synthesizing music is as simple as this:

Player player = new Player(); player.play("CDEFGAB"); 

Although I really understand that the HTML5 Audio API is still under development for most browsers, I am completely unaware if any of these browsers support an API like this.

+6
source share
1 answer

You can watch music.js . They have a demo in action here , but the code looks something like what you described:

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

However, I'm not sure if it actually handles the β€œplay” part, and most likely uses the HTML5 tag.

As for which browsers support the audio tag, this is a simpler question: http://caniuse.com/#search=audio

+2
source

Source: https://habr.com/ru/post/894474/


All Articles