voices.h 630 B

1234567891011121314151617181920212223242526272829303132
  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. delayed_vibrato,
  17. // delayed_vibrato_octave,
  18. // duty_fifth_down,
  19. // duty_fourth_down,
  20. // duty_third_down,
  21. // duty_fifth_third_down,
  22. number_of_voices // important that this is last
  23. } voice_type;
  24. void set_voice(voice_type v);
  25. void voice_iterate(void);
  26. void voice_deiterate(void);
  27. #endif