]> git.donarmstrong.com Git - qmk_firmware.git/blob - quantum/audio/voices.h
fixed compiler warnings (#273)
[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 "musical_notes.h"
6 #include "song_list.h"
7
8 #ifndef VOICES_H
9 #define VOICES_H
10
11 float voice_envelope(float frequency);
12
13 typedef enum {
14     default_voice,
15     butts_fader,
16     octave_crunch,
17     duty_osc,
18     duty_octave_down,
19     number_of_voices // important that this is last
20 } voice_type;
21
22 void set_voice(voice_type v);
23 void voice_iterate(void);
24 void voice_deiterate(void);
25
26 #endif