diff --git a/dev/cpp_transgate.cpp b/dev/cpp_transgate.cpp index 2bfc6dd..f712780 100644 --- a/dev/cpp_transgate.cpp +++ b/dev/cpp_transgate.cpp @@ -77,14 +77,14 @@ struct SDTransgateWidget : ModuleWidget { setModule(module); setPanel(createPanel(asset::plugin(pluginInstance, "res/SDTransgate.svg"))); - addParam(createParamCentered(mm2px(Vec(17.836, 13.126)), module, SDTransgate::TRANS1_PARAM)); - addParam(createParamCentered(mm2px(Vec(17.836, 24.148)), module, SDTransgate::TRANS2_PARAM)); - addParam(createParamCentered(mm2px(Vec(17.836, 35.17)), module, SDTransgate::TRANS3_PARAM)); - addParam(createParamCentered(mm2px(Vec(17.836, 46.192)), module, SDTransgate::TRANS4_PARAM)); - addParam(createParamCentered(mm2px(Vec(17.836, 57.214)), module, SDTransgate::TRANS5_PARAM)); - addParam(createParamCentered(mm2px(Vec(17.836, 68.236)), module, SDTransgate::TRANS6_PARAM)); - addParam(createParamCentered(mm2px(Vec(17.836, 79.258)), module, SDTransgate::TRANS7_PARAM)); - addParam(createParamCentered(mm2px(Vec(17.836, 90.28)), module, SDTransgate::TRANS8_PARAM)); + addParam(createParamCentered(mm2px(Vec(19.128, 13.126)), module, SDTransgate::TRANS1_PARAM)); + addParam(createParamCentered(mm2px(Vec(19.128, 24.148)), module, SDTransgate::TRANS2_PARAM)); + addParam(createParamCentered(mm2px(Vec(19.128, 35.17)), module, SDTransgate::TRANS3_PARAM)); + addParam(createParamCentered(mm2px(Vec(19.128, 46.192)), module, SDTransgate::TRANS4_PARAM)); + addParam(createParamCentered(mm2px(Vec(19.128, 57.214)), module, SDTransgate::TRANS5_PARAM)); + 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)); addInput(createInputCentered(mm2px(Vec(6.652, 13.126)), module, SDTransgate::GATE1_INPUT)); @@ -100,14 +100,14 @@ struct SDTransgateWidget : ModuleWidget { addOutput(createOutputCentered(mm2px(Vec(17.836, 119.318)), module, SDTransgate::OUTPUT_OUTPUT)); - addChild(createLightCentered>(mm2px(Vec(12.054, 13.126)), module, SDTransgate::GATEON1_LIGHT)); - addChild(createLightCentered>(mm2px(Vec(12.054, 24.148)), module, SDTransgate::GATEON2_LIGHT)); - addChild(createLightCentered>(mm2px(Vec(12.054, 35.17)), module, SDTransgate::GATEON3_LIGHT)); - addChild(createLightCentered>(mm2px(Vec(12.054, 46.192)), module, SDTransgate::GATEON4_LIGHT)); - addChild(createLightCentered>(mm2px(Vec(12.054, 57.214)), module, SDTransgate::GATEON5_LIGHT)); - addChild(createLightCentered>(mm2px(Vec(12.054, 68.236)), module, SDTransgate::GATEON6_LIGHT)); - addChild(createLightCentered>(mm2px(Vec(12.054, 79.258)), module, SDTransgate::GATEON7_LIGHT)); - addChild(createLightCentered>(mm2px(Vec(12.054, 90.28)), module, SDTransgate::GATEON8_LIGHT)); + addChild(createLightCentered>(mm2px(Vec(12.7, 13.126)), module, SDTransgate::GATEON1_LIGHT)); + addChild(createLightCentered>(mm2px(Vec(12.7, 24.148)), module, SDTransgate::GATEON2_LIGHT)); + addChild(createLightCentered>(mm2px(Vec(12.7, 35.17)), module, SDTransgate::GATEON3_LIGHT)); + addChild(createLightCentered>(mm2px(Vec(12.7, 46.192)), module, SDTransgate::GATEON4_LIGHT)); + addChild(createLightCentered>(mm2px(Vec(12.7, 57.214)), module, SDTransgate::GATEON5_LIGHT)); + addChild(createLightCentered>(mm2px(Vec(12.7, 68.236)), module, SDTransgate::GATEON6_LIGHT)); + addChild(createLightCentered>(mm2px(Vec(12.7, 79.258)), module, SDTransgate::GATEON7_LIGHT)); + addChild(createLightCentered>(mm2px(Vec(12.7, 90.28)), module, SDTransgate::GATEON8_LIGHT)); } }; diff --git a/dev/panel_transgate.svg b/dev/panel_transgate.svg index f530e54..c0dd594 100644 --- a/dev/panel_transgate.svg +++ b/dev/panel_transgate.svg @@ -30,11 +30,11 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:zoom="2.8284273" - inkscape:cx="-137.17871" - inkscape:cy="277.71617" + inkscape:zoom="2.0000001" + inkscape:cx="-414.99997" + inkscape:cy="228.24999" inkscape:document-units="mm" - inkscape:current-layer="layer2" + inkscape:current-layer="layer3" showgrid="false" inkscape:window-width="3840" inkscape:window-height="1529" @@ -85,7 +85,27 @@ id="tspan2523-31-5-2" x="2.8514438" y="99.551498" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222px;font-family:'Share Tech Mono';-inkscape-font-specification:'Share Tech Mono, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;text-align:start;letter-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.165;stroke-dasharray:none;stroke-opacity:1">GATESGATESGATETRANS diff --git a/res/SDTransgate.svg b/res/SDTransgate.svg index 835eb1a..08de1ff 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="2.8284273" - inkscape:cx="-140.00714" - inkscape:cy="300.69714" + inkscape:zoom="8.0000005" + inkscape:cx="27.624998" + inkscape:cy="362.68748" inkscape:document-units="mm" inkscape:current-layer="layer3" showgrid="false" @@ -74,6 +74,14 @@ id="text2525-5-40-0" style="font-size:2.82222px;line-height:1.25;font-family:'Share Tech Mono';-inkscape-font-specification:'Share Tech Mono, Normal';letter-spacing:0px;word-spacing:0px;stroke:#000000;stroke-width:0.165" aria-label="GATES" />(mm2px(Vec(17.836, 13.126)), module, SDTransgate::TRANS1_PARAM)); - addParam(createParamCentered(mm2px(Vec(17.836, 24.148)), module, SDTransgate::TRANS2_PARAM)); - addParam(createParamCentered(mm2px(Vec(17.836, 35.17)), module, SDTransgate::TRANS3_PARAM)); - addParam(createParamCentered(mm2px(Vec(17.836, 46.192)), module, SDTransgate::TRANS4_PARAM)); - addParam(createParamCentered(mm2px(Vec(17.836, 57.214)), module, SDTransgate::TRANS5_PARAM)); - addParam(createParamCentered(mm2px(Vec(17.836, 68.236)), module, SDTransgate::TRANS6_PARAM)); - addParam(createParamCentered(mm2px(Vec(17.836, 79.258)), module, SDTransgate::TRANS7_PARAM)); - addParam(createParamCentered(mm2px(Vec(17.836, 90.28)), module, SDTransgate::TRANS8_PARAM)); + addParam(createParamCentered(mm2px(Vec(19.128, 13.126)), module, SDTransgate::TRANS1_PARAM)); + addParam(createParamCentered(mm2px(Vec(19.128, 24.148)), module, SDTransgate::TRANS2_PARAM)); + addParam(createParamCentered(mm2px(Vec(19.128, 35.17)), module, SDTransgate::TRANS3_PARAM)); + addParam(createParamCentered(mm2px(Vec(19.128, 46.192)), module, SDTransgate::TRANS4_PARAM)); + addParam(createParamCentered(mm2px(Vec(19.128, 57.214)), module, SDTransgate::TRANS5_PARAM)); + 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)); addInput(createInputCentered(mm2px(Vec(6.652, 13.126)), module, SDTransgate::GATE1_INPUT)); @@ -147,14 +147,14 @@ struct SDTransgateWidget : ModuleWidget { addOutput(createOutputCentered(mm2px(Vec(17.836, 119.318)), module, SDTransgate::OUTPUT_OUTPUT)); - addChild(createLightCentered>(mm2px(Vec(12.054, 13.126)), module, SDTransgate::GATEON1_LIGHT)); - addChild(createLightCentered>(mm2px(Vec(12.054, 24.148)), module, SDTransgate::GATEON2_LIGHT)); - addChild(createLightCentered>(mm2px(Vec(12.054, 35.17)), module, SDTransgate::GATEON3_LIGHT)); - addChild(createLightCentered>(mm2px(Vec(12.054, 46.192)), module, SDTransgate::GATEON4_LIGHT)); - addChild(createLightCentered>(mm2px(Vec(12.054, 57.214)), module, SDTransgate::GATEON5_LIGHT)); - addChild(createLightCentered>(mm2px(Vec(12.054, 68.236)), module, SDTransgate::GATEON6_LIGHT)); - addChild(createLightCentered>(mm2px(Vec(12.054, 79.258)), module, SDTransgate::GATEON7_LIGHT)); - addChild(createLightCentered>(mm2px(Vec(12.054, 90.28)), module, SDTransgate::GATEON8_LIGHT)); + addChild(createLightCentered>(mm2px(Vec(12.7, 13.126)), module, SDTransgate::GATEON1_LIGHT)); + addChild(createLightCentered>(mm2px(Vec(12.7, 24.148)), module, SDTransgate::GATEON2_LIGHT)); + addChild(createLightCentered>(mm2px(Vec(12.7, 35.17)), module, SDTransgate::GATEON3_LIGHT)); + addChild(createLightCentered>(mm2px(Vec(12.7, 46.192)), module, SDTransgate::GATEON4_LIGHT)); + addChild(createLightCentered>(mm2px(Vec(12.7, 57.214)), module, SDTransgate::GATEON5_LIGHT)); + addChild(createLightCentered>(mm2px(Vec(12.7, 68.236)), module, SDTransgate::GATEON6_LIGHT)); + addChild(createLightCentered>(mm2px(Vec(12.7, 79.258)), module, SDTransgate::GATEON7_LIGHT)); + addChild(createLightCentered>(mm2px(Vec(12.7, 90.28)), module, SDTransgate::GATEON8_LIGHT)); } };