Module polyblep

Source
Expand description

PolyBLEP and PolyBLAMP anti-aliasing for band-limited waveform generation.

This module provides polynomial corrections to eliminate aliasing artifacts from discontinuous waveforms (sawtooth, square, pulse) and slope discontinuities (triangle).

PolyBLEP (Polynomial Band-Limited Step) smooths step discontinuities by applying a polynomial correction near the transition point. PolyBLAMP (Band-Limited rAMP) is the integrated form, used for slope discontinuities.

All functions are generic over the Sample trait for efficient f32/f64 processing.

Functionsยง

apply_polyblamp_triangle
Apply PolyBLAMP corrections to a SIMD chunk of triangle samples.
apply_polyblep_pulse
Apply PolyBLEP corrections to a SIMD chunk of pulse samples.
apply_polyblep_saw
Apply PolyBLEP corrections to a SIMD chunk of sawtooth samples.
apply_polyblep_square
Apply PolyBLEP corrections to a SIMD chunk of square samples.
poly_blamp
PolyBLAMP correction for slope discontinuities.
poly_blamp_simd
Branchless SIMD PolyBLAMP correction for 4 phase values.
poly_blep
PolyBLEP correction for step discontinuities.
poly_blep_simd
Branchless SIMD PolyBLEP correction for 4 phase values.
polyblamp_triangle
Generate a band-limited triangle wave sample using PolyBLAMP.
polyblep_pulse
Generate a band-limited pulse wave sample using PolyBLEP.
polyblep_saw
Generate a band-limited sawtooth sample using PolyBLEP.
polyblep_square
Generate a band-limited square wave sample using PolyBLEP.