diff --git a/README.md b/README.md index 96cb739..3a3c5f2 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,16 @@ +
Description of package;
// interface to download soundfont, then execute callback; -MIDI.loadPlugin(callback, soundfont); +MIDI.loadPlugin(callback); // simple example to get started; -MIDI.loadPlugin(function() { - MIDI.noteOn(0, 100, 127, 0); // plays note once loaded -}, "soundfont/soundfont-ogg-guitar.js"); +MIDI.loadPlugin({ + instrument: "acoustic_grand_piano", // or 1 (default) + instruments: [ "acoustic_grand_piano", "acoustic_guitar_nylon" ], // or multiple instruments + callback: function() { } +});