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
JZZ.synth.OSC(name);
// or
JZZ.synth.OSC.register(name);
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>

See also