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

JZZ.synth.Tiny

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.Tiny();
// or
var port = JZZ.synth.Tiny(name);
// or
JZZ.synth.Tiny.register(name);
var port = JZZ().openMidiOut(name);

Example

<script src='JZZ.js'></script>
<script src='JZZ.synth.Tiny.js'></script>
...
<script><!--
JZZ.synth.Tiny().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