computerscare-vcv-modules

computerscare modules for VCV Rack
Log | Files | Refs

commit 00934c45167385b442cc91b3c8f495d8d071d9f6
parent 26023d9f0d14faf9423db9a9d1a90fd539b5724b
Author: Adam M <[email protected]>
Date:   Sun, 22 Dec 2019 19:36:22 -0600

Scramble knob

Diffstat:
Ares/computerscare-scramble-knob.svg | 98+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Msrc/Computerscare.hpp | 5+++++
Msrc/ComputerscareStolyFickPigure.cpp | 2+-
3 files changed, 104 insertions(+), 1 deletion(-)

diff --git a/res/computerscare-scramble-knob.svg b/res/computerscare-scramble-knob.svg @@ -0,0 +1,98 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + id="Layer_1" + data-name="Layer 1" + viewBox="0 0 18 18" + version="1.1" + sodipodi:docname="computerscare-scramble-knob.svg" + inkscape:version="0.92.2 5c3e80d, 2017-08-06" + width="18" + height="18"> + <metadata + id="metadata1289"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title>01 Big Knob</dc:title> + </cc:Work> + </rdf:RDF> + </metadata> + <sodipodi:namedview + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="1398" + inkscape:window-height="834" + id="namedview1287" + showgrid="false" + inkscape:zoom="89.512028" + inkscape:cx="9.8032052" + inkscape:cy="14.934485" + inkscape:window-x="0" + inkscape:window-y="0" + inkscape:window-maximized="0" + inkscape:current-layer="Big_Knob" /> + <defs + id="defs1279"> + <style + id="style1277">.cls-1{fill:#245559;}.cls-2{fill:none;stroke:#24c9a6;stroke-miterlimit:10;stroke-width:3px;}</style> + </defs> + <title + id="title1281">01 Big Knob</title> + <g + id="Big_Knob" + data-name="Big Knob" + transform="translate(0,-42)"> + <path + style="opacity:0.98000004;fill:#c77926;fill-opacity:1;stroke:#000000;stroke-width:0.79400003;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="M 17.306156,50.928799 C 17.8533,57.421582 13.64617,60.016136 8.7872824,59.778464 0.40039519,59.368221 0.84796337,55.750926 0.6610911,50.970148 0.3736912,43.617558 1.5366908,47.26179 5.8050942,46.943312 c 0.2710372,-0.02022 -1.1305484,-0.951575 1.5111874,-2.221306 12.3023874,-5.913053 0.6738741,2.594949 6.6875524,3.444852 0,0 3.302322,-1.769882 3.302322,2.761999 z" + id="Big_Button_Circle" + inkscape:connector-curvature="0" + sodipodi:nodetypes="cssssssc" /> + <path + sodipodi:nodetypes="cssssssc" + inkscape:connector-curvature="0" + id="path944" + d="M 17.306156,50.928857 C 17.8533,57.42164 13.651536,59.712825 8.787282,59.778522 6.075609,59.815142 7.698862,57.942989 7.587534,53.159856 7.568254,52.331529 7.122531,51.238967 5.8050937,46.94337 5.7254007,46.683526 4.6745447,45.991795 7.316281,44.722064 c 12.302388,-5.913053 0.673874,2.594949 6.687553,3.444852 0,0 3.302322,-1.769882 3.302322,2.761999 z" + style="opacity:0.98000004;fill:#266fc7;fill-opacity:1;stroke:none;stroke-width:0.79400003;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + <path + style="fill:none;stroke:#17df97;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 7.1051904,55.710074 10.277948,51.956388 7.3733108,49.766738 10.099201,46.147113 8.5351658,42.304054 v 0" + id="path940" + inkscape:connector-curvature="0" + sodipodi:nodetypes="cccccc" /> + <path + sodipodi:nodetypes="cccccc" + inkscape:connector-curvature="0" + id="path942" + d="M 10.222359,55.710073 11.116093,52.224508 8.2114558,50.034858 10.937346,46.415233 9.373311,42.572174 9.1498773,41.94656" + style="fill:none;stroke:#75bba2;stroke-width:0.88818896;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + <path + sodipodi:nodetypes="cssssssc" + inkscape:connector-curvature="0" + id="path946" + d="M 17.306156,50.928799 C 17.8533,57.421582 13.64617,60.016136 8.7872824,59.778464 0.40039519,59.368221 0.84796337,55.750926 0.6610911,50.970148 0.3736912,43.617558 1.5366908,47.26179 5.8050942,46.943312 c 0.2710372,-0.02022 -1.1305484,-0.951575 1.5111874,-2.221306 12.3023874,-5.913053 0.6738741,2.594949 6.6875524,3.444852 0,0 3.302322,-1.769882 3.302322,2.761999 z" + style="opacity:0.98000004;fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.79400003;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + <path + sodipodi:nodetypes="cc" + inkscape:connector-curvature="0" + id="path948" + d="M 9.2278098,44.365229 8.4178631,42.354327" + style="fill:none;stroke:#17df97;stroke-width:0.73700786;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + </g> +</svg> diff --git a/src/Computerscare.hpp b/src/Computerscare.hpp @@ -297,6 +297,11 @@ struct SmallKnob : RoundKnob { setSvg(APP->window->loadSvg(asset::plugin(pluginInstance, "res/computerscare-small-knob-effed.svg"))); } }; +struct ScrambleKnob : RoundKnob { + ScrambleKnob() { + setSvg(APP->window->loadSvg(asset::plugin(pluginInstance, "res/computerscare-scramble-knob.svg"))); + } +}; struct SmallSnapKnob : RoundBlackSnapKnob { //bool visible = true; diff --git a/src/ComputerscareStolyFickPigure.cpp b/src/ComputerscareStolyFickPigure.cpp @@ -447,7 +447,7 @@ struct StolyFickPigureWidget : ModuleWidget { addParam(createParam<SmallKnob>(Vec(31, 357), module, StolyFickPigure::TRIM)); addParam(createParam<SmoothKnob>(Vec(51, 353), module, StolyFickPigure::OFFSET)); - addParam(createParam<SmallKnob>(Vec(81, 357), module, StolyFickPigure::SCRAMBLE)); + addParam(createParam<ScrambleKnob>(Vec(81, 357), module, StolyFickPigure::SCRAMBLE)); }