A simple Web Audio oscillator-based synth. Use it as a fallback when no better MIDI-Out options are available.
See the demo...
JZZ.synth.OSC(); // or var port = JZZ.synth.OSC(name); // or JZZ.synth.OSC.register(name); var port = JZZ().openMidiOut(name);
<script src='JZZ.js'></script> <script src='JZZ.synth.OSC.js'></script> ... <script><!-- JZZ.synth.OSC().noteOn(0, 'C5', 127).wait(500).noteOff(0, 'C5'); --></script>
The synth audio output can be directed to any node within the Web Audio graph for further processing.
port.plug(audionode) - direct the synth audio output to the audionode.