computerscare-vcv-modules

computerscare modules for VCV Rack
Log | Files | Refs

commit aa10e124959e38dbb82a02cc36e536b7b0f8ee53
parent dff2ac5ef245a990596b1158cbe9cb1d02f8e092
Author: Adam M <[email protected]>
Date:   Wed, 20 Oct 2021 18:04:48 -0500

goly penerator poly channels

Diffstat:
Msrc/Computerscare.hpp | 11++++++++---
Msrc/ComputerscareGolyPenerator.cpp | 2++
2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/Computerscare.hpp b/src/Computerscare.hpp @@ -351,21 +351,26 @@ struct InPort : ComputerscareSvgPort { // Knobs -struct LrgKnob : RoundBlackSnapKnob { +struct LrgKnob : RoundKnob { LrgKnob() { + snap = true; + shadow->opacity = 0.f; setSvg(APP->window->loadSvg(asset::plugin(pluginInstance, "res/computerscare-big-knob-effed.svg"))); } }; -struct MediumSnapKnob : RoundBlackSnapKnob { +struct MediumSnapKnob : RoundKnob { MediumSnapKnob() { + snap = true; shadow->opacity = 0.f; setSvg(APP->window->loadSvg(asset::plugin(pluginInstance, "res/computerscare-medium-knob-effed.svg"))); } }; -struct MediumDotSnapKnob : RoundBlackSnapKnob { +struct MediumDotSnapKnob : RoundKnob { MediumDotSnapKnob() { + shadow->opacity = 0.f; + snap = true; setSvg(APP->window->loadSvg(asset::plugin(pluginInstance, "res/computerscare-medium-knob-dot-indicator.svg"))); } }; diff --git a/src/ComputerscareGolyPenerator.cpp b/src/ComputerscareGolyPenerator.cpp @@ -65,6 +65,8 @@ struct ComputerscareGolyPenerator : ComputerscarePolyModule { configParam(OUT_OFFSET, -10.f, 10.f, 0.f, "Output Offset"); configParam<AutoParamQuantity>(POLY_CHANNELS, 1.f, 16.f, 16.f, "Poly Channels"); + getParamQuantity(POLY_CHANNELS)->randomizeEnabled = false; + availableAlgorithms.push_back("Linear"); availableAlgorithms.push_back("Sigmoid"); availableAlgorithms.push_back("Hump");