-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdelayeffect.h
More file actions
35 lines (23 loc) · 771 Bytes
/
delayeffect.h
File metadata and controls
35 lines (23 loc) · 771 Bytes
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
33
34
35
#ifndef DELAYEFFECT_H
#define DELAYEFFECT_H
typedef struct {
int sampling_rate;
float W; // Delay in seconds
float f_LFO; // Frequency of LFO
float NOMINAL_DELAY;
float CHORUS_WIDTH;
float f_LFO_samples;
int delayline_size;
float *delayline;
float i_frac;
float i;
float frac;
int sampleNumber;
} DelayEffect;
void init_delay_effect(DelayEffect *instance, int _sampling_rate, float _W, float _f_LFO);
static void insert_in_delayline(DelayEffect *instance, float value);
static void print_delayline(DelayEffect *instance);
float process_vibrato(DelayEffect *instance, float value);
float process_flanger(DelayEffect *instance, float value);
float process_white_chorus(DelayEffect *instance, float value);
#endif