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