bitcrush

Files: bitcrush.h, bitcrush.c

Digital signal degradation
Bitcrusher will digitally degrade a signal by altering the bitdepth and sampling-rate.

Functions

sp_bitcrush_create(sp_bitcrush **bitcrush)
sp_bitcrush_init(sp_data *sp, sp_bitcrush *bitcrush)
sp_bitcrush_compute(sp_data *sp, sp_bitcrush *bitcrush, SPFLOAT *input, SPFLOAT *out)
sp_bitcrush_destroy(sp_bitcrush **bitcrush)

Optional Parameters

bitdepth: Bit depth. Expects an integer in the range of 1-16. Fractional values will be truncated.
(Default value: 8)
srate: Sampling rate.
(Default value: 10000)

Inputs

input: Signal input.

Outputs

out: Signal output