upload
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
Dieses Repo ist archiviert. Du kannst Dateien sehen und es klonen, kannst aber nicht pushen oder Issues/Pull-Requests öffnen.

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