Hamish Moffatt

Results 214 comments of Hamish Moffatt

On 26/11/17 21:37, Owwwl9 wrote: > > instruments = player.getFileInstruments(); > for (var i = 0; i < instruments.length; i++) { > MIDI.programChange(i, MIDI.GM.byName[instruments[i]].number); > } > Don't do this,...

On load it decompresses all the samples back to raw PCM audio. The sound fonts (if generated with the included soundfont builder script) have 3 seconds of stereo audio for...

I modified the converter (soundfont_builder.rb) to run sox before encoding in order to strip off the silence. The extra line is ` run_command "#{SOX} #{target}.orig.wav #{target} reverse silence 1 0.1...

That's a separate project that uses MIDI.js. It's not part of this project.

The sound fonts don't have any information about attack / steady / decay, if you had that information you could certainly use it and get both infinite sustain AND smaller...

Is there a fix / workaround for this?

There were some bugs in Safari on iOS 9.0-9.2. http://www.williammalone.com/posts/ios-9-web-audio-api-safari-mobile-issue/ I modified the examples to only init the audio context after the user presses a button. It seems maybe iOS...

Which bit exactly @silverhawk184 ?

Yes, the scheduling of all the WebAudio sources far in to the future (potentially 1000 nodes) is killing the iPad. That's a different issue that this one though which is...

Midi.js can't loop the samples to sustain a note indefinitely like a real soundfont player. You can change the builder to increase the 3 seconds but it will make your...