]> git.donarmstrong.com Git - qmk_firmware.git/blob - quantum/audio/voices.h
Merge pull request #297 from gid0/master
[qmk_firmware.git] / quantum / audio / voices.h
1 #include <stdint.h>
2 #include <stdbool.h>
3 #include <avr/io.h>
4 #include <util/delay.h>
5 #include "luts.h"
6
7 #ifndef VOICES_H
8 #define VOICES_H
9
10 float voice_envelope(float frequency);
11
12 typedef enum {
13     default_voice,
14     butts_fader,
15     octave_crunch,
16     duty_osc,
17     duty_octave_down,
18     delayed_vibrato,
19     // delayed_vibrato_octave,
20     // duty_fifth_down,
21     // duty_fourth_down,
22     // duty_third_down,
23     // duty_fifth_third_down,
24     number_of_voices // important that this is last
25 } voice_type;
26
27 void set_voice(voice_type v);
28 void voice_iterate(void);
29 void voice_deiterate(void);
30
31 #endif