]> git.donarmstrong.com Git - qmk_firmware.git/blob - quantum/audio/voices.h
52f7e006d6a158d8e614e4edb26cba54289928a5
[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     #ifdef AUDIO_VOICES
15     something,
16     drums,
17     butts_fader,
18     octave_crunch,
19     duty_osc,
20     duty_octave_down,
21     delayed_vibrato,
22     // delayed_vibrato_octave,
23     // duty_fifth_down,
24     // duty_fourth_down,
25     // duty_third_down,
26     // duty_fifth_third_down,
27     #endif
28     number_of_voices // important that this is last
29 } voice_type;
30
31 void set_voice(voice_type v);
32 void voice_iterate(void);
33 void voice_deiterate(void);
34
35 #endif