On #musedchat Monday Nov 18 I saw an opportunity to mention an open source Scoring/Engraving tool and was soon encouraged to send more links to open source resources. I’ve been collecting such links in the bookmarks of various browsers for years, and I’ve followed through on my initial interest to various degrees, so in some cases I found myself checking links along with my memory. In one case—MIDI.js—I said a big “Oh yeah! I was gonna try installing that, wasn’t I?”
Here’s what it looks like today. (It’s not worth listening to in anything but Chrome).
undefined error originally came from this line, but I haven’t found where MIDI.lang is supposed to be defined, and the sentence really doesn’t tell me anything I care to know if I define it as “English.” I made sure the page has a title and I even gave it a language attribute but no luck only by hard-coding it as shown below could I stop it so far. Will dig in [to the MIDI object, its properties and methods] later.
// I added... // Quick suppression of undefined MIDI.lang = MIDI.lang || 'en-ca'; /// above... // this is the language we are running in var title = document.getElementById("title"); title.innerHTML = "Sound being generated with " + MIDI.lang + "."; // I also added at line 108 pausePlayStop(true); // Sorry Gasman. Autoplay is just wrong! // Just above that I see <code>song[songid++%3]</code>, the '%3' implies something hard-coded that applied to the fact there used to be 3 midi files. To be continued...
Leave a Reply