| 59 | bool halfPhase = false; |
| 60 | |
| 61 | SamplingModulator() { |
| 62 | config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS); |
| 63 | configParam(RATE_PARAM, 0.0f, 1.f, 0.f, "Rate"); |
| 64 | configParam(FINE_PARAM, 0.f, 1.f, 0.f, "Fine tune"); |
| 65 | configSwitch(INT_EXT_PARAM, 0.f, 1.f, CLOCK_INTERNAL, "Clock", {"External", "Internal"}); |
| 66 | |
| 67 | configInput(SYNC_INPUT, "Sync"); |
| 68 | configInput(VOCT_INPUT, "V/Oct"); |
| 69 | configInput(HOLD_INPUT, "Hold"); |
| 70 | configInput(IN_INPUT, "Raw"); |
| 71 | configOutput(CLOCK_OUTPUT, "Clock"); |
| 72 | configOutput(TRIGG_OUTPUT, "Trigger"); |
| 73 | configOutput(OUT_OUTPUT, "Sampled"); |
| 74 | |
| 75 | for (int i = 0; i < numSteps; i++) { |
| 76 | configSwitch(STEP_PARAM + i, 0.f, 2.f, STATE_ON, string::f("Step %d", i + 1), {"Reset", "Off", "On"}); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | void process(const ProcessArgs& args) override { |
| 81 | bool advanceStep = false; |
nothing calls this directly
no outgoing calls
no test coverage detected