diff --git a/dev/cpp_comparator.cpp b/dev/cpp_comparator.cpp index b33f849..3fec41c 100644 --- a/dev/cpp_comparator.cpp +++ b/dev/cpp_comparator.cpp @@ -11,7 +11,7 @@ struct SDComparator : Module { LEVEL6_PARAM, LEVEL7_PARAM, LEVEL8_PARAM, - MODE_PARAM, + DOT_PARAM, PARAMS_LEN }; enum InputId { @@ -53,7 +53,7 @@ struct SDComparator : Module { configParam(LEVEL6_PARAM, 0.f, 1.f, 0.f, ""); configParam(LEVEL7_PARAM, 0.f, 1.f, 0.f, ""); configParam(LEVEL8_PARAM, 0.f, 1.f, 0.f, ""); - configParam(MODE_PARAM, 0.f, 1.f, 0.f, ""); + configParam(DOT_PARAM, 0.f, 1.f, 0.f, ""); configInput(LEVELS_INPUT, ""); configInput(INPUT_INPUT, ""); configOutput(GATE1_OUTPUT, ""); @@ -85,7 +85,7 @@ struct SDComparatorWidget : ModuleWidget { addParam(createParamCentered(mm2px(Vec(6.271, 68.236)), module, SDComparator::LEVEL6_PARAM)); addParam(createParamCentered(mm2px(Vec(6.271, 79.258)), module, SDComparator::LEVEL7_PARAM)); addParam(createParamCentered(mm2px(Vec(6.271, 90.28)), module, SDComparator::LEVEL8_PARAM)); - addParam(createParam(mm2px(Vec(15.617, 101.089)), module, SDComparator::MODE_PARAM)); + addParam(createParam(mm2px(Vec(15.541, 101.089)), module, SDComparator::DOT_PARAM)); addInput(createInputCentered(mm2px(Vec(6.651, 104.61)), module, SDComparator::LEVELS_INPUT)); addInput(createInputCentered(mm2px(Vec(6.651, 119.319)), module, SDComparator::INPUT_INPUT)); diff --git a/dev/cpp_transgate.cpp b/dev/cpp_transgate.cpp index f712780..7fb5030 100644 --- a/dev/cpp_transgate.cpp +++ b/dev/cpp_transgate.cpp @@ -85,7 +85,7 @@ struct SDTransgateWidget : ModuleWidget { addParam(createParamCentered(mm2px(Vec(19.128, 68.236)), module, SDTransgate::TRANS6_PARAM)); addParam(createParamCentered(mm2px(Vec(19.128, 79.258)), module, SDTransgate::TRANS7_PARAM)); addParam(createParamCentered(mm2px(Vec(19.128, 90.28)), module, SDTransgate::TRANS8_PARAM)); - addParam(createParam(mm2px(Vec(15.617, 101.089)), module, SDTransgate::ALL_ON_PARAM)); + addParam(createParam(mm2px(Vec(15.541, 101.089)), module, SDTransgate::ALL_ON_PARAM)); addInput(createInputCentered(mm2px(Vec(6.652, 13.126)), module, SDTransgate::GATE1_INPUT)); addInput(createInputCentered(mm2px(Vec(6.652, 24.148)), module, SDTransgate::GATE2_INPUT)); diff --git a/dev/panel_comparator.svg b/dev/panel_comparator.svg index 4ee0d2f..ac053d7 100644 --- a/dev/panel_comparator.svg +++ b/dev/panel_comparator.svg @@ -30,16 +30,16 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:zoom="1.4142136" - inkscape:cx="35.355338" - inkscape:cy="350.3714" + inkscape:zoom="2.157847" + inkscape:cx="47.732763" + inkscape:cy="280.37206" inkscape:document-units="mm" inkscape:current-layer="layer2" showgrid="false" inkscape:window-width="1350" - inkscape:window-height="1237" - inkscape:window-x="364" - inkscape:window-y="276" + inkscape:window-height="1244" + inkscape:window-x="721" + inkscape:window-y="194" inkscape:window-maximized="0" showguides="true" inkscape:showpageshadow="2" @@ -171,27 +171,27 @@ y="99.633995" />MODEDOT + aria-label="DOT" /> diff --git a/res/SDTransgate.svg b/res/SDTransgate.svg index 08de1ff..78b5445 100644 --- a/res/SDTransgate.svg +++ b/res/SDTransgate.svg @@ -30,9 +30,9 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:zoom="8.0000005" - inkscape:cx="27.624998" - inkscape:cy="362.68748" + inkscape:zoom="6.0625466" + inkscape:cx="111.33935" + inkscape:cy="444.28525" inkscape:document-units="mm" inkscape:current-layer="layer3" showgrid="false" diff --git a/src/SDComparator.cpp b/src/SDComparator.cpp index c944854..b4409cd 100644 --- a/src/SDComparator.cpp +++ b/src/SDComparator.cpp @@ -13,7 +13,7 @@ struct SDComparator : Module { LEVEL6_PARAM, LEVEL7_PARAM, LEVEL8_PARAM, - MODE_PARAM, + DOT_PARAM, PARAMS_LEN }; enum InputId { @@ -57,8 +57,8 @@ struct SDComparator : Module { configParam(LEVEL7_PARAM, -10.f, 10.f, 0.f, ""); configParam(LEVEL8_PARAM, -10.f, 10.f, 0.f, ""); - configSwitch(MODE_PARAM, 0.0, 1.0, 0.0, "Mode", {"Dot", "Bar"}); - getParamQuantity(MODE_PARAM)->randomizeEnabled = false; + configSwitch(DOT_PARAM, 0.0, 1.0, 0.0, "Dot Mode", {"On", "Off"}); + getParamQuantity(DOT_PARAM)->randomizeEnabled = false; configInput(LEVELS_INPUT, "Threshold Levels"); configInput(INPUT_INPUT, "Input"); @@ -104,7 +104,7 @@ struct SDComparator : Module { } } - if (params[MODE_PARAM].getValue() == 1) { // dot + if (params[DOT_PARAM].getValue() == 1) { // dot for (int i = 0; i < CHANNEL_COUNT; i++) { lights[GATEON1_LIGHT + i].setBrightness(i == highest_index ? 1.f : 0.f); outputs[GATE1_OUTPUT + i].setVoltage(i == highest_index ? 10.f : 0.f); @@ -136,7 +136,7 @@ struct SDComparatorWidget : ModuleWidget { addParam(createParamCentered(mm2px(Vec(6.271, 68.236)), module, SDComparator::LEVEL6_PARAM)); addParam(createParamCentered(mm2px(Vec(6.271, 79.258)), module, SDComparator::LEVEL7_PARAM)); addParam(createParamCentered(mm2px(Vec(6.271, 90.28)), module, SDComparator::LEVEL8_PARAM)); - addParam(createParam(mm2px(Vec(15.617, 101.089)), module, SDComparator::MODE_PARAM)); + addParam(createParam(mm2px(Vec(15.541, 101.089)), module, SDComparator::DOT_PARAM)); addInput(createInputCentered(mm2px(Vec(6.651, 104.61)), module, SDComparator::LEVELS_INPUT)); addInput(createInputCentered(mm2px(Vec(6.651, 119.319)), module, SDComparator::INPUT_INPUT)); diff --git a/src/SDTransgate.cpp b/src/SDTransgate.cpp index d5aa3d8..0f71894 100644 --- a/src/SDTransgate.cpp +++ b/src/SDTransgate.cpp @@ -133,7 +133,7 @@ struct SDTransgateWidget : ModuleWidget { addParam(createParamCentered(mm2px(Vec(19.128, 68.236)), module, SDTransgate::TRANS6_PARAM)); addParam(createParamCentered(mm2px(Vec(19.128, 79.258)), module, SDTransgate::TRANS7_PARAM)); addParam(createParamCentered(mm2px(Vec(19.128, 90.28)), module, SDTransgate::TRANS8_PARAM)); - addParam(createParam(mm2px(Vec(15.617, 101.089)), module, SDTransgate::ALL_ON_PARAM)); + addParam(createParam(mm2px(Vec(15.541, 101.089)), module, SDTransgate::ALL_ON_PARAM)); addInput(createInputCentered(mm2px(Vec(6.652, 13.126)), module, SDTransgate::GATE1_INPUT)); addInput(createInputCentered(mm2px(Vec(6.652, 24.148)), module, SDTransgate::GATE2_INPUT));