Browse Source

SHASR: Make PUSH button only trigger row 1, and lower rows if triggers are unconnected.

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

+ 4
- 1
src/SHASR.cpp View File

@@ -64,7 +64,10 @@ struct SHASR : Module {
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 || push) {
if (i == 0 && push) {
lastTrig = true;
}
if (lastTrig) {
float sample = 0.f; float sample = 0.f;
if (i == 0) { if (i == 0) {
if (randomize) { if (randomize) {


Loading…
Cancel
Save