diff --git a/res/VCMixer.svg b/res/VCMixer.svg index 1c5137f..8b445ef 100644 --- a/res/VCMixer.svg +++ b/res/VCMixer.svg @@ -1,6 +1,4 @@ - - - - + id="svg278" + sodipodi:docname="VC_MIX.svg" + inkscape:version="0.92.3 (2405546, 2018-03-11)"> + id="metadata282"> image/svg+xml - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + id="b2569482-4225-4af9-992a-bc22878e51bd" + data-name="FND BG"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/VCMixer.cpp b/src/VCMixer.cpp index 8c643f1..c3f05db 100644 --- a/src/VCMixer.cpp +++ b/src/VCMixer.cpp @@ -27,6 +27,7 @@ struct VCMixer : Module { dsp::ClockDivider lightDivider; VCMixer() { + config(0, 0, 0, 0); config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS); // x^1 scaling up to 6 dB configParam(MIX_LVL_PARAM, 0.0, 2.0, 1.0, "Mix level", " dB", -10, 20); @@ -51,8 +52,7 @@ struct VCMixer : Module { // Get number of poly channels for mix output int mixChannels = 1; for (int i = 0; i < 4; i++) { - int channels = inputs[CH_INPUTS + i].getChannels(); - mixChannels = std::max(mixChannels, channels); + mixChannels = std::max(mixChannels, inputs[CH_INPUTS + i].getChannels()); } float mix[16] = {}; @@ -153,28 +153,27 @@ struct VCMixerWidget : ModuleWidget { addChild(createWidget(Vec(RACK_GRID_WIDTH, RACK_GRID_HEIGHT - RACK_GRID_WIDTH))); addChild(createWidget(Vec(box.size.x - 2 * RACK_GRID_WIDTH, RACK_GRID_HEIGHT - RACK_GRID_WIDTH))); - addParam(createParam(mm2px(Vec(19.049999, 21.161154)), module, VCMixer::MIX_LVL_PARAM)); - addParam(createLightParam>(mm2px(Vec(5.8993969, 44.33149).plus(Vec(-2, 0))), module, VCMixer::LVL_PARAMS + 0, VCMixer::LVL_LIGHTS + 0)); - addParam(createLightParam>(mm2px(Vec(17.899343, 44.331486).plus(Vec(-2, 0))), module, VCMixer::LVL_PARAMS + 1, VCMixer::LVL_LIGHTS + 1)); - addParam(createLightParam>(mm2px(Vec(29.899292, 44.331486).plus(Vec(-2, 0))), module, VCMixer::LVL_PARAMS + 2, VCMixer::LVL_LIGHTS + 2)); - addParam(createLightParam>(mm2px(Vec(41.90065, 44.331486).plus(Vec(-2, 0))), module, VCMixer::LVL_PARAMS + 3, VCMixer::LVL_LIGHTS + 3)); - - // Use old interleaved order for backward compatibility with <0.6 - addInput(createInput(mm2px(Vec(3.2935331, 23.404598)), module, VCMixer::MIX_CV_INPUT)); - addInput(createInput(mm2px(Vec(3.2935331, 78.531639)), module, VCMixer::CH_INPUTS + 0)); - addInput(createInput(mm2px(Vec(3.2935331, 93.531586)), module, VCMixer::CV_INPUTS + 0)); - addInput(createInput(mm2px(Vec(15.29348, 78.531639)), module, VCMixer::CH_INPUTS + 1)); - addInput(createInput(mm2px(Vec(15.29348, 93.531586)), module, VCMixer::CV_INPUTS + 1)); - addInput(createInput(mm2px(Vec(27.293465, 78.531639)), module, VCMixer::CH_INPUTS + 2)); - addInput(createInput(mm2px(Vec(27.293465, 93.531586)), module, VCMixer::CV_INPUTS + 2)); - addInput(createInput(mm2px(Vec(39.293411, 78.531639)), module, VCMixer::CH_INPUTS + 3)); - addInput(createInput(mm2px(Vec(39.293411, 93.531586)), module, VCMixer::CV_INPUTS + 3)); - - addOutput(createOutput(mm2px(Vec(39.293411, 23.4046)), module, VCMixer::MIX_OUTPUT)); - addOutput(createOutput(mm2px(Vec(3.2935331, 108.53153)), module, VCMixer::CH_OUTPUTS + 0)); - addOutput(createOutput(mm2px(Vec(15.29348, 108.53153)), module, VCMixer::CH_OUTPUTS + 1)); - addOutput(createOutput(mm2px(Vec(27.293465, 108.53153)), module, VCMixer::CH_OUTPUTS + 2)); - addOutput(createOutput(mm2px(Vec(39.293411, 108.53153)), module, VCMixer::CH_OUTPUTS + 3)); + addParam(createLightParamCentered>(mm2px(Vec(6.604, 33.605)), module, VCMixer::LVL_PARAMS + 0, VCMixer::LVL_LIGHTS + 0)); + addParam(createLightParamCentered>(mm2px(Vec(17.441, 33.605)), module, VCMixer::LVL_PARAMS + 1, VCMixer::LVL_LIGHTS + 1)); + addParam(createLightParamCentered>(mm2px(Vec(28.279, 33.605)), module, VCMixer::LVL_PARAMS + 2, VCMixer::LVL_LIGHTS + 2)); + addParam(createLightParamCentered>(mm2px(Vec(39.116, 33.605)), module, VCMixer::LVL_PARAMS + 3, VCMixer::LVL_LIGHTS + 3)); + addParam(createParamCentered(mm2px(Vec(22.776, 64.366)), module, VCMixer::MIX_LVL_PARAM)); + + addInput(createInputCentered(mm2px(Vec(6.604, 64.347)), module, VCMixer::MIX_CV_INPUT)); + addInput(createInputCentered(mm2px(Vec(6.604, 80.549)), module, VCMixer::CV_INPUTS + 0)); + addInput(createInputCentered(mm2px(Vec(17.441, 80.549)), module, VCMixer::CV_INPUTS + 1)); + addInput(createInputCentered(mm2px(Vec(28.279, 80.549)), module, VCMixer::CV_INPUTS + 2)); + addInput(createInputCentered(mm2px(Vec(39.116, 80.549)), module, VCMixer::CV_INPUTS + 3)); + addInput(createInputCentered(mm2px(Vec(6.604, 96.859)), module, VCMixer::CH_INPUTS + 0)); + addInput(createInputCentered(mm2px(Vec(17.441, 96.859)), module, VCMixer::CH_INPUTS + 1)); + addInput(createInputCentered(mm2px(Vec(28.279, 96.859)), module, VCMixer::CH_INPUTS + 2)); + addInput(createInputCentered(mm2px(Vec(39.116, 96.821)), module, VCMixer::CH_INPUTS + 3)); + + addOutput(createOutputCentered(mm2px(Vec(39.116, 64.347)), module, VCMixer::MIX_OUTPUT)); + addOutput(createOutputCentered(mm2px(Vec(6.604, 113.115)), module, VCMixer::CH_OUTPUTS + 0)); + addOutput(createOutputCentered(mm2px(Vec(17.441, 113.115)), module, VCMixer::CH_OUTPUTS + 1)); + addOutput(createOutputCentered(mm2px(Vec(28.279, 113.115)), module, VCMixer::CH_OUTPUTS + 2)); + addOutput(createOutputCentered(mm2px(Vec(39.116, 113.115)), module, VCMixer::CH_OUTPUTS + 3)); } }; diff --git a/src/WTLFO.cpp b/src/WTLFO.cpp index 6d09b5a..7a29f35 100644 --- a/src/WTLFO.cpp +++ b/src/WTLFO.cpp @@ -286,9 +286,9 @@ struct WTLFOWidget : ModuleWidget { addParam(createParamCentered(mm2px(Vec(8.913, 56.388)), module, WTLFO::FREQ_PARAM)); addParam(createParamCentered(mm2px(Vec(26.647, 56.388)), module, WTLFO::POS_PARAM)); addParam(createParamCentered(mm2px(Vec(6.987, 80.603)), module, WTLFO::FM_PARAM)); - addParam(createLightParamCentered>(mm2px(Vec(17.824, 80.517)), module, WTLFO::INVERT_PARAM, WTLFO::INVERT_LIGHT)); + addParam(createLightParamCentered>>(mm2px(Vec(17.824, 80.517)), module, WTLFO::INVERT_PARAM, WTLFO::INVERT_LIGHT)); addParam(createParamCentered(mm2px(Vec(28.662, 80.536)), module, WTLFO::POS_CV_PARAM)); - addParam(createLightParamCentered>(mm2px(Vec(17.824, 96.859)), module, WTLFO::OFFSET_PARAM, WTLFO::OFFSET_LIGHT)); + addParam(createLightParamCentered>>(mm2px(Vec(17.824, 96.859)), module, WTLFO::OFFSET_PARAM, WTLFO::OFFSET_LIGHT)); addInput(createInputCentered(mm2px(Vec(6.987, 96.859)), module, WTLFO::FM_INPUT)); addInput(createInputCentered(mm2px(Vec(28.662, 96.859)), module, WTLFO::POS_INPUT)); diff --git a/src/WTVCO.cpp b/src/WTVCO.cpp index 25db867..fd3a6e7 100644 --- a/src/WTVCO.cpp +++ b/src/WTVCO.cpp @@ -239,9 +239,9 @@ struct WTVCOWidget : ModuleWidget { addParam(createParamCentered(mm2px(Vec(8.915, 56.388)), module, WTVCO::FREQ_PARAM)); addParam(createParamCentered(mm2px(Vec(26.645, 56.388)), module, WTVCO::POS_PARAM)); addParam(createParamCentered(mm2px(Vec(6.897, 80.603)), module, WTVCO::FM_PARAM)); - addParam(createLightParamCentered>(mm2px(Vec(17.734, 80.603)), module, WTVCO::LINEAR_PARAM, WTVCO::LINEAR_LIGHT)); + addParam(createLightParamCentered>>(mm2px(Vec(17.734, 80.603)), module, WTVCO::LINEAR_PARAM, WTVCO::LINEAR_LIGHT)); addParam(createParamCentered(mm2px(Vec(28.571, 80.603)), module, WTVCO::POS_CV_PARAM)); - addParam(createLightParamCentered>(mm2px(Vec(17.734, 96.859)), module, WTVCO::SOFT_PARAM, WTVCO::SOFT_LIGHT)); + addParam(createLightParamCentered>>(mm2px(Vec(17.734, 96.859)), module, WTVCO::SOFT_PARAM, WTVCO::SOFT_LIGHT)); addInput(createInputCentered(mm2px(Vec(6.897, 96.813)), module, WTVCO::FM_INPUT)); addInput(createInputCentered(mm2px(Vec(28.571, 96.859)), module, WTVCO::POS_INPUT));