| 126 | std::atomic<PolyphonyMode> polyphonyMode{MONOPHONIC}; |
| 127 | std::atomic<bool> lockedType{false}, randomizeFX{false}; |
| 128 | AW2RModule() |
| 129 | { |
| 130 | AirwinConsolidatedBase::defaultSampleRate = APP->engine->getSampleRate(); |
| 131 | |
| 132 | assert(!AirwinRegistry::registry.empty()); |
| 133 | config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS); |
| 134 | |
| 135 | configInput(INPUT_L, "Left / Mono Input"); |
| 136 | configInput(INPUT_R, "Right Input"); |
| 137 | configOutput(OUTPUT_L, "Left Output"); |
| 138 | configOutput(OUTPUT_R, "Right Output"); |
| 139 | configBypass(INPUT_L, OUTPUT_L); |
| 140 | configBypass(INPUT_R, OUTPUT_R); |
| 141 | |
| 142 | configParam(MAX_PARAMS_USED_TO_BE_11_DONT_BREAK_FOLKS, 0, 1, 0, "Unused"); |
| 143 | configParam(MAX_PARAMS_USED_TO_BE_11_DONT_BREAK_ATTENS, 0, 1, 0, "Unused"); |
| 144 | |
| 145 | auto pin = configParam(IN_LEVEL, 0, 1, 1, "Input Gain", "%", 0, 100); |
| 146 | pin->randomizeEnabled = false; |
| 147 | auto pou = configParam(OUT_LEVEL, 0, 1, 1, "Output Gain", "%", 0, 100); |
| 148 | pou->randomizeEnabled = false; |
| 149 | |
| 150 | for (int i = 0; i < maxParams; ++i) |
| 151 | { |
| 152 | auto pq = |
| 153 | configParam<AWParamQuantity>(PARAM_0 + i, 0, 1, 0, "Param " + std::to_string(i)); |
| 154 | pq->smoothEnabled = true; |
| 155 | |
| 156 | auto av = configParam(ATTENUVERTER_0 + i, -1, 1, 0, "CV Scale " + std::to_string(i)); |
| 157 | av->randomizeEnabled = false; |
| 158 | |
| 159 | configInput(CV_0 + i, "CV " + std::to_string(i)); |
| 160 | } |
| 161 | |
| 162 | resetAirwinByName("Galactic", true); |
| 163 | } |
| 164 | |
| 165 | std::optional<std::vector<labeledStereoPort_t>> getPrimaryInputs() override |
| 166 | { |
nothing calls this directly
no test coverage detected