Browse Source

SHASR: Make PUSH button trigger all rows regardless of TRIG connectedness.

tags/v2.6.0
Andrew Belt 1 year ago
parent
commit
bd0a2adb12
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/SHASR.cpp

+ 2
- 2
src/SHASR.cpp View File

@@ -58,13 +58,13 @@ struct SHASR : Module {
bool randomize = params[RND_PARAM].getValue(); bool randomize = params[RND_PARAM].getValue();
bool push = pushTrigger.process(params[PUSH_PARAM].getValue()); bool push = pushTrigger.process(params[PUSH_PARAM].getValue());
bool clear = clearTrigger.process(params[CLEAR_PARAM].getValue()); bool clear = clearTrigger.process(params[CLEAR_PARAM].getValue());
bool lastTrig = push;
bool lastTrig = false;


for (int i = 0; i < 8; i++) { for (int i = 0; i < 8; i++) {
if (inputs[TRIG_INPUTS + i].isConnected()) { if (inputs[TRIG_INPUTS + i].isConnected()) {
lastTrig = triggers[i].process(inputs[TRIG_INPUTS + i].getVoltage(), 0.1f, 1.f); lastTrig = triggers[i].process(inputs[TRIG_INPUTS + i].getVoltage(), 0.1f, 1.f);
} }
if (lastTrig) {
if (lastTrig || push) {
float sample = 0.f; float sample = 0.f;
if (i == 0) { if (i == 0) {
if (randomize) { if (randomize) {


Loading…
Cancel
Save