PencilCode / jquery-turtle

Turtle Graphics for JQuery
Other
43 stars 25 forks source link

Better instruments for audio API #56

Open davidbau opened 10 years ago

davidbau commented 10 years ago

There are some fantastic js libraries that will render "soundfonts" that have terrific instruments, such as

https://github.com/mudcube/MIDI.js

We should revamp the audio API to allow soundfonts to be loaded and played; and we should provide a default set of soundfonts.

timaschew commented 8 years ago

Not sure how the soundfonts would affect your player, but I found out that MIDI.js and other libraries which uses MIDI.js have a really bad performance. The MIDI.js demo site http://galacticmilk.com/midi-js/ takes more than 100% CPU on my MacBook Air. So on mobile devices this would be really bad.

Your musicaljs library is quite the opposite and really awesome! It needs very less CPU and memory. Never more than 10% CPU while playing the Moonlight Sonata for instance.

davidbau commented 8 years ago

Thanks for the info. What would be really wonderful is a few higher-quality synthesized instruments that do not require a giant soundfont.

timaschew commented 8 years ago

This looks nice: http://mohayonao.github.io/timbre.js/soundfont.html The soundfont is provided by https://free-midi.googlecode.com it's a mp3, not sure if this data format fits into musicaljs.

Another related comment: https://github.com/PencilCode/musical.js/issues/8