Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better instruments for audio API #56

Open
davidbau opened this issue Apr 14, 2014 · 3 comments
Open

Better instruments for audio API #56

davidbau opened this issue Apr 14, 2014 · 3 comments

Comments

@davidbau
Copy link
Member

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
Copy link

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
Copy link
Member Author

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

@timaschew
Copy link

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: PencilCode/musical.js#8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants