From b5c725e8bf80f8cab63fa43a56ae284e7782210e Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 13 Sep 2023 03:12:05 -0400 Subject: [PATCH] SHASR: Make PUSH button only trigger row 1, and lower rows if triggers are unconnected. --- src/SHASR.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/SHASR.cpp b/src/SHASR.cpp index 1970576..d3ea3a8 100644 --- a/src/SHASR.cpp +++ b/src/SHASR.cpp @@ -64,7 +64,10 @@ struct SHASR : Module { if (inputs[TRIG_INPUTS + i].isConnected()) { lastTrig = triggers[i].process(inputs[TRIG_INPUTS + i].getVoltage(), 0.1f, 1.f); } - if (lastTrig || push) { + if (i == 0 && push) { + lastTrig = true; + } + if (lastTrig) { float sample = 0.f; if (i == 0) { if (randomize) {