summaryrefslogtreecommitdiff
path: root/Core/Inc/Effects/ringmod.h
blob: 766fad44418376dc4d1351ec90fe1f6a0cf6b18a (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
26
27
28
29
30
31
32
/*
 * 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(
    const struct RingModParams *params,
    const int32_t *samples_in,
    int32_t *samples_out,
    const size_t range_min,
    const size_t range_max,
    const enum Channel channel
);

#endif /* INC_EFFECTS_RINGMOD_H_ */