MIDI Sampler 2
I wanted more to show, but there's a lot of work that can't be seen yet.
New:
3 instruments: (new) piano, guitar, bass.
You can change the channel number, 0,1,2 and play the keyboard.
The Entertainer plays piano on treble and guitar on bass.
Swapped Maple Leaf Rag for Skyfall
Just not ready for >2 channels
A key change here is that where version 1 had a sound file for every note, this version uses a few notes, and uses the essential C2/WebAudio SetPlaybackRate command to bend the pitch of the known notes to any other note needed. This is essential to keep the number of files down.
Chord ON/OFF added.
Songs can loop.
One technical problem I've hit though is that WebAudio does not support gapless looping. This will be critical for instruments that sustain notes indefinitely. This is a bleeding-edge requirement being worked on by others.
Pre-load workaround is automated. Still need proper support for this.