upload
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

voices.h 598B

12345678910111213141516171819202122232425262728293031
  1. #include <stdint.h>
  2. #include <stdbool.h>
  3. #include <avr/io.h>
  4. #include <util/delay.h>
  5. #include "luts.h"
  6. #ifndef VOICES_H
  7. #define VOICES_H
  8. float voice_envelope(float frequency);
  9. typedef enum {
  10. default_voice,
  11. butts_fader,
  12. octave_crunch,
  13. duty_osc,
  14. duty_octave_down,
  15. delayed_vibrato,
  16. // delayed_vibrato_octave,
  17. // duty_fifth_down,
  18. // duty_fourth_down,
  19. // duty_third_down,
  20. // duty_fifth_third_down,
  21. number_of_voices // important that this is last
  22. } voice_type;
  23. void set_voice(voice_type v);
  24. void voice_iterate(void);
  25. void voice_deiterate(void);
  26. #endif