-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdelay.h
42 lines (36 loc) · 1.51 KB
/
delay.h
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
36
37
38
39
40
41
42
/**
******************************************************************************
* File Name : delay.h
* Author : Xavier Halgand
* Date :
* Description :
******************************************************************************
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __DELAY_H
#define __DELAY_H
//*************************************************************************************************
/*--------------------- Global Defines ------------------------ */
#define DELAYLINE_LEN 30000 // max delay in samples (30000 is 0.625 seconds)
#define DELAY 13000 // init delay (in samples)
#define MIN_DELAY 250 // min delay, in samples
#define DELTA_DELAY 20 // variation step of delay time
#define INIT_FEEDB 0.4f
#define INIT_WET 0.5f
/* Includes ------------------------------------------------------------------*/
#include <stdint.h>
#include <math.h>
#include "constants.h"
/* Exported functions --------------------------------------------------------*/
void Delay_init(void);
void Delay_clean(void);
float Delay_compute (float x);
void Delay_feedback_inc(void);
void Delay_feedback_dec(void);
void DelayFeedback_set(uint8_t val);
void DelayWet_set(uint8_t val);
void Delay_time_inc(uint8_t val);
void Delay_time_dec(uint8_t val);
void Delay_time_set(uint8_t val);
//*************************************************************************************************
#endif