PolyBlep
PolyBLEP (Polynomial Band-Limited Step) A lightweight anti-aliasing technique for oscillators that reduces unwanted dig…
Free to use for anything. No credit needed.
param freq = 220 (20 .. 2000)
param level = 0.3 (0 .. 1)
function choice(phase) {
if (phase >= 1) { phase = phase - 1 }
return phase
}
history hist1 = 0
let div1 = freq / samplerate
let lowpass1 = lowpass(level, 20)
let add1 = hist1 + div1
let choice1 = choice(add1)
let mul1 = choice1 * twopi
let sin1 = sin(mul1)
let mul2 = sin1 * lowpass1
out1 = mul2
out2 = mul2
hist1 = choice1
Comments
No comments yet.
Log in or create an account to place a comment.