upload
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
このリポジトリはアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュや、課題・プルリクエストのオープンはできません。

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