summaryrefslogtreecommitdiff
path: root/Core/Inc/Effects/ringmod.h
blob: 516ca6cd17af73052edcb9712617f3f06b67ba26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * ringmod.h
 *
 *  Created on: Aug 19, 2026
 *      Author: ozpv
 */

#ifndef INC_EFFECTS_RINGMOD_H_
#define INC_EFFECTS_RINGMOD_H_

#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>

typedef struct RingModParams {
    float mix;
    float frequency;
    float lfo_amount;
    float lfo_rate;
    bool square_lfo;
} RingModParams;

void ringmod(float *samples, const size_t range_min, const size_t range_max, const struct RingModParams *params);

#endif /* INC_EFFECTS_RINGMOD_H_ */