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

JZZ.synth.OSC

A simple Web Audio oscillator-based synth. Use it as a fallback when no better MIDI-Out options are available.

See the demo...

Usage

JZZ.synth.OSC();
// or
var port = JZZ.synth.OSC(name);
// or
JZZ.synth.OSC.register(name);
var port = JZZ().openMidiOut(name);

Example

<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>

plug()

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.

See also