Tiny Web-Audio GM Synthesizer (g200kg/webaudio-tinysynth) wrapped for JZZ.js
Please check the demo...
npm install jzz-synth-tiny
or bower install jzz-synth-tiny
or yarn add jzz-synth-tiny
or get the full development version and minified scripts from GitHub
<script src="JZZ.js"></script>
<script src="JZZ.synth.Tiny.js"></script>
//...
<script src="https://cdn.jsdelivr.net/npm/jzz"></script>
<script src="https://cdn.jsdelivr.net/npm/jzz-synth-tiny"></script>
//...
<script src="https://unpkg.com/jzz"></script>
<script src="https://unpkg.com/jzz-synth-tiny"></script>
//...
var JZZ = require('jzz');
require('jzz-synth-tiny')(JZZ);
//...
require(['JZZ', 'JZZ.synth.Tiny'], function(JZZ, dummy) {
// ...
});
JZZ.synth.Tiny().noteOn(0, 'C5', 127)
.wait(500).noteOn(0, 'E5', 127)
.wait(500).noteOn(0, 'G5', 127)
.wait(500).noteOff(0, 'C5').noteOff(0, 'E5').noteOff(0, 'G5');
JZZ.synth.Tiny.register('Web Audio');
JZZ().openMidiOut('Web Audio').noteOn(0, 'C5', 127)
.wait(500).noteOn(0, 'E5', 127)
.wait(500).noteOn(0, 'G5', 127)
.wait(500).noteOff(0, 'C5').noteOff(0, 'E5').noteOff(0, 'G5');
To make vitual port visible by Web MIDI API, please check https://github.com/jazz-soft/JZZ#virtual-midi-ports
Please visit https://jazz-soft.net for more information.