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)
history phase = 0
let increment = freq / samplerate
let nextPhase = phase + increment
if (nextPhase >= 1) {
nextPhase = nextPhase - 1
}
let saw = (nextPhase * 2) - 1
let output = saw * level
out1 = output
out2 = output
phase = nextPhase
Comments
No comments yet.
Log in or create an account to place a comment.