computerscare-vcv-modules

computerscare modules for VCV Rack
Log | Files | Refs

commit a01b3547b3dc97fc87634a3f1703657b6137cd43
parent 15456cba904c46ab145079d433c60ea37096ae33
Author: Adam M <[email protected]>
Date:   Thu,  7 Feb 2019 00:22:23 -0600

move randomAmount of panel row messup into a variable hyyuuuuck hyyyyuck

Diffstat:
Msrc/ComputerscareOhPeas.cpp | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/ComputerscareOhPeas.cpp b/src/ComputerscareOhPeas.cpp @@ -276,7 +276,7 @@ void PeasTextField::onTextChange() { } struct ComputerscareOhPeasWidget : ModuleWidget { - + float randAmt = 1.f; ComputerscareOhPeasWidget(ComputerscareOhPeas *module) : ModuleWidget(module) { setPanel(SVG::load(assetPlugin(plugin, "res/ComputerscareOhPeasPanel.svg"))); /* @@ -336,8 +336,8 @@ struct ComputerscareOhPeasWidget : ModuleWidget { for(int i = 0; i < numChannels; i++) { - xx = x + dx*i+2.4*randomUniform()-1.2; - y+=2.4*randomUniform()-1.2; + xx = x + dx*i+randAmt*(2*randomUniform()-.5); + y+=randAmt*(randomUniform()-.5); //if(i %2) { addInput(Port::create<InPort>(mm2px(Vec(xx, y)), Port::INPUT, module, ComputerscareOhPeas::CHANNEL_INPUT+i)); /*}