85 bool exponential_chirp,
bool fade_in);
bool chirp_is_running(struct chirp_t *chirp, float current_time_s)
Return if the current_time is within the chirp manoeuvre.
void chirp_init(struct chirp_t *chirp, float f0_hz, float f1_hz, float length_s, float current_time_s, bool exponential_chirp, bool fade_in)
Allocate and initialize a new chirp struct.
float current_frequency_hz
float chirp_update(struct chirp_t *chirp, float current_time_s)
Calculate the value at current_time_s and update the struct with current frequency and value.
void chirp_reset(struct chirp_t *chirp, float current_time_s)
Reset the time of the chirp.
Initialize with chirp_init.
static struct chirp_t chirp