update README

This commit is contained in:
Michael Deal 2013-01-22 16:09:06 -08:00
parent 7a40a68811
commit edbb8113b8

View file

@ -1,6 +1,4 @@
<pre> * <a href="./js/MIDI.loadPlugin.js">MIDI.loadPlugin.js</a>: Decides which framework is best to use, and sends request.
<li><a href="./js/MIDI.loadPlugin.js">MIDI.loadPlugin.js</a>: &nbsp;Decides which framework is best to use, and sends request.</li>
<li class="indent">
<pre> <pre>
// interface to download soundfont, then execute callback; // interface to download soundfont, then execute callback;
MIDI.loadPlugin(callback); MIDI.loadPlugin(callback);
@ -11,21 +9,18 @@ MIDI.loadPlugin({
callback: function() { } callback: function() { }
}); });
</pre> </pre>
</li>
<li><a href="./soundfont/soundfont-ogg.js">MIDI.Soundfont.js</a>: &nbsp;Customizable base64 Soundfont.</li> * <a href="./soundfont/soundfont-ogg.js">MIDI.Soundfont.js</a>: Customizable base64 Soundfont.
<li class="indent square"><a href="http://mudcu.be/journal/2011/11/base64-soundfonts/">Encode your own soundfonts</a>, Drums, Guitars, and so on.</li> * <a href="./js/MIDI.Plugin.js">MIDI.Plugin.js</a>: Ties together the following frameworks;
<li class="indent square"><a href="https://github.com/mudx/MIDI.js">Share</a> them with the community!</li> <pre>
<li><a href="./js/MIDI.Plugin.js">MIDI.Plugin.js</a>: &nbsp;Ties together the following frameworks;</li>
<li class="indent"><pre>
MIDI.noteOn(channel, note, velocity, delay); MIDI.noteOn(channel, note, velocity, delay);
MIDI.noteOff(channel, note, delay); MIDI.noteOff(channel, note, delay);
MIDI.chordOn(channel, chord, velocity, delay); MIDI.chordOn(channel, chord, velocity, delay);
MIDI.chordOff(channel, chord, delay); MIDI.chordOff(channel, chord, delay);
MIDI.keyToNote = object; // A0 => 21 MIDI.keyToNote = object; // A0 => 21
MIDI.noteToKey = object; // 21 => A0 MIDI.noteToKey = object; // 21 => A0
</pre></li> </pre>
<li><a href="./js/MIDI.Player.js">MIDI.Player.js</a>: &nbsp;Streams the MIDI to the browser. * <a href="./js/MIDI.Player.js">MIDI.Player.js</a>: Streams the MIDI to the browser.
<li class="indent">
<pre> <pre>
MIDI.Player.currentTime = integer; // time we are at now within the song. MIDI.Player.currentTime = integer; // time we are at now within the song.
MIDI.Player.endTime = integer; // time when song ends. MIDI.Player.endTime = integer; // time when song ends.
@ -53,22 +48,19 @@ MIDI.Player.setAnimation(function(data) {
var end = data.end; // time when song ends var end = data.end; // time when song ends
var events = data.events; // all the notes currently being processed var events = data.events; // all the notes currently being processed
// then do what you want with the information! // then do what you want with the information!
});</pre></li> });</pre>
</li>
<li><a href="./js/Color.js">Color.js</a>: &nbsp;Color conversions, music isn&rsquo;t complete without!</li> * <a href="./js/Color.js">Color.js</a>: Color conversions, music isn&rsquo;t complete without!
<li class="indent"><pre>Color.Space(0xff0000, "HEX>RGB>HSL");</pre></li> <pre>Color.Space(0xff0000, "HEX>RGB>HSL");</pre>
<li><a href="./js/DOMLoader.script.js">DOMLoader.script.js</a>: &nbsp;Loads scripts in synchronously, or asynchronously.</li> * <a href="./js/DOMLoader.script.js">DOMLoader.script.js</a>: Loads scripts in synchronously, or asynchronously.
<li class="indent"><pre>DOMLoader.script.add(src, callback);</pre></li> <pre>DOMLoader.script.add(src, callback);</pre>
<li><a href="./js/DOMLoader.XMLHttp.js">DOMLoader.XMLHttp.js</a>: &nbsp;Cross-browser XMLHttpd request.</li> * <a href="./js/DOMLoader.XMLHttp.js">DOMLoader.XMLHttp.js</a>: Cross-browser XMLHttpd request.
<li class="indent"><pre>DOMLoader.sendRequest(src, callback);</pre></li> <pre>DOMLoader.sendRequest(src, callback);</pre>
<li><a href="./js/MusicTheory.Synesthesia.js">MusicTheory.Synesthesia.js</a>: &nbsp;Note-to-color mappings (from Isaac Newton onwards).</li> * <a href="./js/MusicTheory.Synesthesia.js">MusicTheory.Synesthesia.js</a>: Note-to-color mappings (from Isaac Newton onwards).
<h3>Many thanks to the authors of these libraries;</h3> <h3>Many thanks to the authors of these libraries;</h3>
<li><a href="http://dev.w3.org/html5/spec/Overview.html">&lt;audio&gt;</a>: &nbsp;HTML5 specs</li> * <a href="http://dev.w3.org/html5/spec/Overview.html">&lt;audio&gt;</a>: HTML5 specs
<li><a href="https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html">WebAudioAPI</a>: &nbsp;W3C proposal by Google</li> * <a href="https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html">WebAudioAPI</a>: W3C proposal by Google
<li>Java package: &nbsp;<a href="https://github.com/abudaan/midibridge-js">MIDIBridge</a> by <a href="http://abumarkub.net">Daniel van der Meer</a></li> * Java package: <a href="https://github.com/abudaan/midibridge-js">MIDIBridge</a> by <a href="http://abumarkub.net">Daniel van der Meer</a>. Supports MIDI keyboard, and 128 General MIDI instruments.
<li class="indent square">Use this to hook up a MIDI keyboard to your browser!</li> * Flash package: <a href="http://www.schillmania.com/projects/soundmanager2/">SoundManager2</a> by <a href="http://schillmania.com">Scott Schiller</a>
<li class="indent square">Access to 128 General MIDI instruments.</li> * <a href="https://github.com/gasman/jasmid">jasmid</a>: Reads MIDI file byte-code, and translats into a Javascript array.
<li>Flash package: &nbsp;<a href="http://www.schillmania.com/projects/soundmanager2/">SoundManager2</a> by <a href="http://schillmania.com">Scott Schiller</a></li> * <a href="http://blog.danguer.com/2011/10/24/base64-binary-decoding-in-javascript/">base642binary.js</a>: Cleans up XML base64-requests for Web Audio API.
<li><a href="https://github.com/gasman/jasmid">jasmid</a>: &nbsp;Reads MIDI file byte-code, and translats into a Javascript array.</li>
<li><a href="http://blog.danguer.com/2011/10/24/base64-binary-decoding-in-javascript/">base642binary.js</a>: &nbsp;Cleans up XML base64-requests for Web Audio API.</li>
</pre>