guitfx/gate.h

34 lines
476 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 hist_idx;
unsigned hist_size;
float * hist;
unsigned cur_block_count;
float cur_block_sum;
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
);