modal-synthesis
This packages uses the Web Audio API to create a synthesizer for a modal sound.
You can use it to synthesize your own modal sounds, but I don't have documentation for how to do that yet, sorry :(
It involves looking at a spectrogram and identifiying the most important features of the sound.
Eventually I want to make a tool to automate it. But I'm no DSP expert, so it will take me a while.
If you know what you're doing, you can probably figure out how to make your own data, but in the meantime, you can use some samples I included.
More info here: https://ccrma.stanford.edu/~bilbao/booktop/node14.html
Usage
const makeModalSynthesis = ;const glassHit = ; const audioContext = ; const glass = ; glassoutputNode; // Hit the glassglass;
License
MIT