compressor

Files: compressor.h, compressor.c

Compressor

Functions

sp_compressor_create(sp_compressor **compressor)
sp_compressor_init(sp_data *sp, sp_compressor *compressor)
sp_compressor_compute(sp_data *sp, sp_compressor *compressor, SPFLOAT *input, SPFLOAT *out)
sp_compressor_destroy(sp_compressor **compressor)

Mandatory Parameters


Optional Parameters

ratio: Ratio to compress with, a value > 1 will compress
(Default value: 1)
thresh: Threshold (in dB) 0 = max
(Default value: 0)
atk: Compressor attack time constant (in seconds)
(Default value: 0.1)
rel: Compressor release time constant (in seconds)
(Default value: 0.1)

Inputs

input: Signal input.

Outputs

out: Signal output.