voices.h 445 B

12345678910111213141516171819202122232425
  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. number_of_voices // important that this is last
  16. } voice_type;
  17. void set_voice(voice_type v);
  18. void voice_iterate();
  19. void voice_deiterate();
  20. #endif