]> git.donarmstrong.com Git - qmk_firmware.git/blob - quantum/audio/voices.h
adds multiple voices and the ability to iterate/deiterate between them
[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     number_of_voices // important that this is last
19 } voice_type;
20
21 void set_voice(voice_type v);
22 void voice_iterate();
23 void voice_deiterate();
24
25 #endif