You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
749B

  1. #include <cstdint>
  2. #include "../../deps/SynthDevKit/src/CV.hpp"
  3. #include "../SynthKit.hpp"
  4. namespace rack_plugin_SynthKit {
  5. struct Seq4Module : Module {
  6. enum ParamIds {
  7. OCTAVE_PARAM,
  8. SEQ1_PARAM,
  9. SEQ2_PARAM,
  10. SEQ3_PARAM,
  11. SEQ4_PARAM,
  12. NUM_PARAMS
  13. };
  14. enum InputIds { CLOCK_INPUT, NUM_INPUTS };
  15. enum OutputIds { GATE_OUTPUT, NUM_OUTPUTS };
  16. enum LightIds { FIRST_LED, SECOND_LED, THIRD_LED, FOURTH_LED, NUM_LIGHTS };
  17. Seq4Module();
  18. void step() override;
  19. SynthDevKit::CV *cv;
  20. float notes[12] = {0.0f, 0.08f, 0.17f, 0.25f, 0.33f, 0.42f,
  21. 0.5f, 0.58f, 0.67f, 0.75f, 0.83f, 0.92f};
  22. int octives[9] = {-5, -4, -3, -2, -1, 0, 1, 2, 3};
  23. int currentStep;
  24. };
  25. } // namespace rack_plugin_SynthKit