voices.h 510 B

12345678910111213141516171819202122232425262728
  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. number_of_voices // important that this is last
  19. } voice_type;
  20. void set_voice(voice_type v);
  21. void voice_iterate();
  22. void voice_deiterate();
  23. #endif