Novices Plagiarizing Mozart
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

make-distortion-curve

1.0.0 • Public • Published

make-distortion-curve

NPM

cuz im tired of copy pasting the only distortion curve i have ever known.

install

npm install make-distortion-curve

use it

var audioCtx = new (window.AudioContext || window.webkitAudioContext)()
var distortion = audioCtx.createWaveShaper()

var makeDistortionCurve = require('make-distortion-curve')
distortion.curve = makeDistortionCurve(400)

code hoisted from http://stackoverflow.com/questions/22312841/waveshaper-node-in-webaudio-how-to-emulate-distortion and https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createWaveShaper

install

npm i make-distortion-curve

Downloadsweekly downloads

9

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability