2
0

voices.h 578 B

123456789101112131415161718192021222324252627282930
  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. #ifndef VOICES_H
  8. #define VOICES_H
  9. float voice_envelope(float frequency);
  10. typedef enum {
  11. default_voice,
  12. butts_fader,
  13. octave_crunch,
  14. duty_osc,
  15. duty_octave_down,
  16. // duty_fifth_down,
  17. // duty_fourth_down,
  18. // duty_third_down,
  19. // duty_fifth_third_down,
  20. number_of_voices // important that this is last
  21. } voice_type;
  22. void set_voice(voice_type v);
  23. void voice_iterate(void);
  24. void voice_deiterate(void);
  25. #endif