White Noise Generator
Generates white noise with adjustable output level. The same noise signal is sent to both stereo channels.
Free to use for anything. No credit needed.
function polyBlep(t, dt) {
let result = 0
if (t < dt) {
let x = t / dt
result = (x + x) - (x * x) - 1
}
if (t > 1 - dt) {
let x = (t - 1) / dt
result = (x * x) + (x + x) + 1
}
return result
}
// Use case :
//let saw = (phase * 2) - 1
//let correction = polyBlep(phase, dt)
//let output = saw - correction
Comments
No comments yet.
Log in or create an account to place a comment.