Open ccowen opened 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.
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.
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
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?