blsquare

Files: blsquare.h, blsquare.c

Bandlimited square oscillator This is a bandlimited square oscillator ported from the "squaretooth" function from the Faust programming language.

Functions

sp_blsquare_create(sp_blsquare **blsquare)
sp_blsquare_init(sp_data *sp, sp_blsquare *blsquare)
sp_blsquare_compute(sp_data *sp, sp_blsquare *blsquare, SPFLOAT *dummy, SPFLOAT *out)
sp_blsquare_destroy(sp_blsquare **blsquare)

Optional Parameters

freq: Frequency, (range 0-20000)
(Default value: 440)
amp: Amplitude (range 0-1).
(Default value: 1)
width: Duty cycle width (range 0-1).
(Default value: 0.5)

Outputs

out: Signal output.