Hamish Moffatt
Hamish Moffatt
Yes, although you can just write MIDI.Player.loadFile("mysong.mid",MIDI.Player.start);
Did you load the instruments needed by your MIDI file?
Does your mysong.mid only need the grand piano? You have to load all the instruments that your file needs - MIDI.js won't fall back to other instruments for ones that...
On 20/07/16 10:34, gkfrog wrote: > Yes on the noteOn and notteOff. > > The midi files do not have an instrument change. I never coded for that. What channels...
On 20/07/16 11:17, gkfrog wrote: > I do have a program change I was using instrument 2. I changed my > parameters for the program change to Instrument 1 and...
On 20/07/16 11:36, gkfrog wrote: > well 0 makes it work. The tempo is a bit slow, but I have notes! The default example code overrides the tempo (dumb). Set...
That is not anything to do with MIDI.js, you need to look up the WebAudio documentation.
Complicated, because you need to find the note off event for each note on event and then reorder the pairs. Also, what timing between notes do you want when this...
@paulrosen I get double notes with your suggested change. I think it's possible because startAudio loops over midi.data until it has queued 100 messages or reached the end of data,...
According to https://caniuse.com/mdn-api_eventtarget_addeventlistener_options support for the options/boolean is pretty widespread - implementing the options feature detection doesn't seem too important?