guitfx/gate.h

30 lines
439 B
C
Raw Normal View History

2025-01-12 05:08:18 +01:00
#pragma once
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
struct gate {
float threshold;
bool enable_calibration;
unsigned block_size;
unsigned cur_block_count;
float cur_block_sum;
2025-01-27 23:16:59 +01:00
float last_block_sum;
2025-01-12 05:08:18 +01:00
bool is_active;
float cur_gain;
float attack;
float release;
2025-01-12 05:08:18 +01:00
};
void gate_init();
void gate_process(
struct gate * gate,
size_t frame_size,
float const * in,
float * out
);