peaklim
Files: peaklim.h, peaklim.c
Peak limiter
This is a simple peak limiting algorithm, based off code from the Stanford
Music-424 class.
sp_peaklim_create(sp_peaklim **peaklim)
sp_peaklim_init(sp_data *sp, sp_peaklim *peaklim)
sp_peaklim_compute(sp_data *sp, sp_peaklim *peaklim, SPFLOAT *input, SPFLOAT *out)
sp_peaklim_destroy(sp_peaklim **peaklim)
Optional Parameters
atk: Attack time, in seconds
(Default value: 0.01)
rel: Release time, in seconds
(Default value: 0.1)
thresh: Threshold, in dB
(Default value: 0)
Inputs
input: Input signal.
Outputs
out: Output signal.