Browse Source

Push: Make PUSH input invert push state when hold is enabled.

tags/v2.6.0
Andrew Belt 1 year ago
parent
commit
898d2030dd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Push.cpp

+ 1
- 1
src/Push.cpp View File

@@ -56,13 +56,13 @@ struct Push : Module {

// Push button
bool push = params[PUSH_PARAM].getValue() > 0.f;
push ^= hold;

// Push input
pushSchmitt.process(inputs[PUSH_INPUT].getVoltage(), 0.1f, 1.f);

// Gate and trigger outputs
bool gate = push || pushSchmitt.isHigh();
gate ^= hold;
if (pushBoolean.process(gate)) {
trigPulse.trigger(1e-3f);
}


Loading…
Cancel
Save