Package Exports
- web-audio-oscillators
- web-audio-oscillators/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (web-audio-oscillators) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
web-audio-oscillators 
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.
Installation
Install the package via npm:
npm install web-audio-oscillatorsUsage
For example, to create an OscillatorNode that sounds like an organ:
import { customOscillators } from 'web-audio-oscillators';
const context = new AudioContext();
const oscillator = customOscillators.organ(context);
oscillator.frequency.value = 220;
oscillator.connect(context.destination);
oscillator.start();All custom oscillators provided by this package:
sinesquaresquare2sawtoothtriangletriangle2chiptuneorganorgan2organ3organ4organ5bassbass2bass3bass4brassbrass2aahooheehbuzzbuzz2dissonance
Contributing
Pull requests are most welcome. I'd like to expand this collection to cover more musical use cases!