midi-synth
A WebAudio MIDI synthesizer library (no UI). Based on W3C MIDI example: https://webaudio.github.io/web-midi-api/#a-simple-monophonic-sine-wave-midi-synthesizer
Currently uses a single sine wave oscillator with adjustable attack, release, portamento.
Examples
Auto-detect MIDI controller
var Synth = ; var s = //print info messages debug: true; //play something on your MIDI keyboard
Bind to a particular MIDI controller by name or ID
var Synth = ; var s = //print info messages debug: true inputName: 'Virtual Keyboard' //or inputID: 'QONFWIUEFNQUN'; //play something on your MIDI keyboard
Manually bind to MIDI controller
var Synth = ; var s = //print info messages debug: true bindToInputs: false; s;
Manually trigger notes with computer keyboard
var Synth = ; var s = //print info messages debug: true bindToInputs: false; documentbody;documentbody;
Specifying synthesizer configuration
presets.json)
Use a preset (seevar Synth = ; var s = //print info messages debug: true; s; //play something on your MIDI keyboard
Use your own preset
var Synth = ; var s = //print info messages debug: true; s; //play something on your MIDI keyboard