From ffdb8fc93a628398ff285962b8d79034fc1c7684 Mon Sep 17 00:00:00 2001 From: Michael Deal Date: Fri, 25 Jan 2013 21:33:59 -0800 Subject: [PATCH] add WebMIDIAPI shim to all the demos Web MIDI API support works with jazz-soft.net plugin installed, this means users will not need to download Soundfonts from your website, rather they will use their built-in sound banks. This shim by @cwilso provides a preview of the upcoming Web MIDI API, an exciting addition to the W3 specs! --- demo-Basic.html | 5 +++-- demo-MIDIPlayer.html | 9 +++++---- demo-MultipleInstruments.html | 6 ++++-- demo-WhitneyMusicBox.html | 8 +++++--- inc/{Polyfill => }/Base64.js | 0 5 files changed, 17 insertions(+), 11 deletions(-) rename inc/{Polyfill => }/Base64.js (100%) diff --git a/demo-Basic.html b/demo-Basic.html index 66e73c5..b3a3175 100644 --- a/demo-Basic.html +++ b/demo-Basic.html @@ -1,7 +1,7 @@ - + @@ -9,8 +9,8 @@ - + @@ -26,6 +26,7 @@ window.onload = function () { var velocity = 127; // how hard the note hits // play the note MIDI.noteOn(0, note, velocity, delay); + MIDI.noteOff(0, note, delay+0.01); } }); }; diff --git a/demo-MIDIPlayer.html b/demo-MIDIPlayer.html index 62f44c6..ce3e76d 100644 --- a/demo-MIDIPlayer.html +++ b/demo-MIDIPlayer.html @@ -3,9 +3,9 @@ MIDI.js - Sequencing in Javascript. - + - + @@ -20,8 +20,9 @@ - - + + + diff --git a/demo-MultipleInstruments.html b/demo-MultipleInstruments.html index 328ff1e..2d25885 100644 --- a/demo-MultipleInstruments.html +++ b/demo-MultipleInstruments.html @@ -1,14 +1,16 @@ + - - + + + diff --git a/demo-WhitneyMusicBox.html b/demo-WhitneyMusicBox.html index 4505ccc..134bed1 100644 --- a/demo-WhitneyMusicBox.html +++ b/demo-WhitneyMusicBox.html @@ -2,6 +2,7 @@ Whitney Music Box in HTML5 + @@ -12,10 +13,11 @@ - - + + + - +