voices.h 624 B

123456789101112131415161718192021222324252627282930313233
  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. something,
  12. drums,
  13. butts_fader,
  14. octave_crunch,
  15. duty_osc,
  16. duty_octave_down,
  17. delayed_vibrato,
  18. // delayed_vibrato_octave,
  19. // duty_fifth_down,
  20. // duty_fourth_down,
  21. // duty_third_down,
  22. // duty_fifth_third_down,
  23. number_of_voices // important that this is last
  24. } voice_type;
  25. void set_voice(voice_type v);
  26. void voice_iterate(void);
  27. void voice_deiterate(void);
  28. #endif