mudcube / MIDI.js

:musical_keyboard: Making life easy to create a MIDI-app on the web. Includes a library to program synesthesia into your app for memory recognition or for creating trippy effects. Convert soundfonts for Guitar, Bass, Drums, ect. into code that can be read by the browser. Supports multiple simultaneous instruments and perfect timing.
http://mudcu.be/midi-js/
MIT License
3.77k stars 640 forks source link

loading Soundfont #62

Open ccowen opened 10 years ago

ccowen commented 10 years ago

If soundfont never loads (the rainbow star never goes away), am I having an issue with a particular file or is my question too open ended?

mudcube commented 10 years ago

Yes, that sounds like the soundfont is not loading. Does the loader say that anything is loading? Have you checked the Network tab in Chrome to see whether it's attempting to load a file that is non-existent? If you want to post a jsfiddle it'd be easier for me to answer.

ccowen commented 10 years ago

So I am new to this, very new. I plan on making my own app with the files you provided, but first I am trying to duplicate your site http://mudcu.be/midi-js/ to learn.

You can access the code here. http://www.caitlincowen.com/copyMIDIjs/ sample.html is the actual page, the other files are there also The file MIDI.js-master from github is there, but I duplicated the linked files in other folders.

mudcube commented 10 years ago

Looking at the console, it says there is a missing variable in replayer.js "PianoProgram".

I'm not sure why, but your replayer.js has a bunch of content not in MIDI.js... did you edit it?

See the difference here:

https://github.com/mudcube/MIDI.js/blob/master/inc/jasmid/replayer.js http://www.caitlincowen.com/copyMIDIjs/js/lib/jasmid/replayer.js

My recommendation would be to do a fresh clone of the repo. Also, I would use the code on the dev branch (I'm going to push to master soon, I don't think there are any new bugs).

Best, Michael