voices.h 659 B

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