README
clang
a thing you can use for gaussian distributed overtones.
seeeeeee
You can see below. The module takes a params object, or a number. If you only supply a number, it is taken for the base frequency. A params object would also have:
- wave: @STRING waveType (from the oscillators module, on NPM), 'sine' by default
- m: @NUMBER mulitplier. defaults to 1/12
- f: base frequency
the returned object has method .ring(time) but you can also pass two other parameters for the guassian distro, .ring(time, mean, deviation), where mean is basically a an offset, and probably pointless,and deviation is some number (0-3)ish that says how fat or skinny your bell is.
var strangs = require('./')
var params = {}
params.f = 440
params.wave = 'sine'
params.m = 3/12
var harp = strangs(params)
var clang = strangs(387)
console.log(harp.ring(1.11111, 0, 1))
console.log(harp.ring(1.11111))
console.log(clang.ring(1.89562396))