From bd0a2adb123f898ccdb7a8dcbdfe19e02319bb56 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 12 Sep 2023 18:51:03 -0400 Subject: [PATCH] SHASR: Make PUSH button trigger all rows regardless of TRIG connectedness. --- src/SHASR.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SHASR.cpp b/src/SHASR.cpp index b527dba..1970576 100644 --- a/src/SHASR.cpp +++ b/src/SHASR.cpp @@ -58,13 +58,13 @@ struct SHASR : Module { bool randomize = params[RND_PARAM].getValue(); bool push = pushTrigger.process(params[PUSH_PARAM].getValue()); bool clear = clearTrigger.process(params[CLEAR_PARAM].getValue()); - bool lastTrig = push; + bool lastTrig = false; for (int i = 0; i < 8; i++) { if (inputs[TRIG_INPUTS + i].isConnected()) { lastTrig = triggers[i].process(inputs[TRIG_INPUTS + i].getVoltage(), 0.1f, 1.f); } - if (lastTrig) { + if (lastTrig || push) { float sample = 0.f; if (i == 0) { if (randomize) {