]> git.donarmstrong.com Git - qmk_firmware.git/blob - quantum/audio/voices.h
adds fifth and fourth down voices
[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     duty_fifth_down,
20     duty_fourth_down,
21     number_of_voices // important that this is last
22 } voice_type;
23
24 void set_voice(voice_type v);
25 void voice_iterate();
26 void voice_deiterate();
27
28 #endif