A collection of Web Audio API custom oscillators.
Are you after a nice organ or bass sound? Look no further!
An online demo of all oscillators included in this package can be found here.
Install the package with NPM:
$ npm install web-audio-oscillators
For example, to create an OscillatorNode that sounds like an organ:
import oscillators from "web-audio-oscillators"; let context = new (window.AudioContext || window.webkitAudioContext)(); let oscillator = oscillators.organ(context); oscillator.frequency.value = 220; oscillator.connect(context.destination); oscillator.start();
All oscillators provided by this package:
Pull requests are most welcome. I'd like to expand this collection to cover more musical use cases!