upload
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Repozitorijs ir arhivēts. Tam var aplūkot failus un to var klonēt, bet nevar iesūtīt jaunas izmaiņas, kā arī atvērt jaunas problēmas/izmaiņu pieprasījumus.

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