Jazz-Soft.net
We make it sound!
Home » Documentation » JZZ.js » Modules » JZZ.synth.MIDIjs

JZZ.synth.MIDIjs

A wrapper for MIDI.js library by Michael Deal.

See the demo...

Usage

JZZ.synth.MIDIjs(params);
// or
JZZ.synth.MIDIjs(name, params);
// or
JZZ.synth.MIDIjs.register(name, params);
JZZ().openMidiOut(name);

where params - is the parameters object passed to the underlying library:

Example

<script src='JZZ.js'></script>
<script src='MIDI.js'></script>
<script src='JZZ.synth.MIDIjs.js'></script>
...
<script><!--
JZZ.synth.MIDIjs({ soundfontUrl: "./soundfont/", instrument: "acoustic_grand_piano" })
  .noteOn(0, 'C5', 127).wait(500).noteOff(0, 'C5');
--></script>

See also