@@ -330,7 +330,7 @@ struct Arrange : Module {
330
330
recordLatched = false ;
331
331
}
332
332
}
333
- paramQuantities[STAGE_SELECT]->setDisplayValue (currentStage);
333
+ paramQuantities[STAGE_SELECT]->setDisplayValue (currentStage+ 1 );
334
334
} else if (inputs[FORWARD_INPUT].isConnected ()) {
335
335
bool forwardCurrentState = forwardInput.process (inputs[FORWARD_INPUT].getVoltage ());
336
336
if (forwardCurrentState && !prevForwardState) { // Rising edge detected
@@ -342,7 +342,7 @@ struct Arrange : Module {
342
342
recordLatched = false ;
343
343
}
344
344
}
345
- paramQuantities[STAGE_SELECT]->setDisplayValue (currentStage);
345
+ paramQuantities[STAGE_SELECT]->setDisplayValue (currentStage+ 1 );
346
346
}
347
347
prevForwardState = forwardCurrentState; // Update previous state
348
348
}
@@ -353,28 +353,28 @@ struct Arrange : Module {
353
353
if (currentStage < 0 ) {
354
354
currentStage = maxStages - 1 ; // Wrap around to the last stage
355
355
}
356
- paramQuantities[STAGE_SELECT]->setDisplayValue (currentStage);
356
+ paramQuantities[STAGE_SELECT]->setDisplayValue (currentStage+ 1 );
357
357
} else if (inputs[BACKWARDS_INPUT].isConnected ()) {
358
358
bool backwardCurrentState = backwardInput.process (inputs[BACKWARDS_INPUT].getVoltage ());
359
359
if (backwardCurrentState && !prevBackwardState) { // Rising edge detected
360
360
currentStage--;
361
361
if (currentStage < 0 ) {
362
362
currentStage = maxStages - 1 ; // Wrap around to the last stage
363
363
}
364
- paramQuantities[STAGE_SELECT]->setDisplayValue (currentStage);
364
+ paramQuantities[STAGE_SELECT]->setDisplayValue (currentStage+ 1 );
365
365
}
366
366
prevBackwardState = backwardCurrentState; // Update previous state
367
367
}
368
368
369
369
// Handle button press for Reset last
370
370
if (resetTrigger.process (params[RESET_BUTTON].getValue ())) {
371
371
currentStage = 0 ; // Reset to the first stage
372
- paramQuantities[STAGE_SELECT]->setDisplayValue (currentStage);
372
+ paramQuantities[STAGE_SELECT]->setDisplayValue (currentStage+ 1 );
373
373
} else if (inputs[RESET_INPUT].isConnected ()) {
374
374
bool resetCurrentState = resetInput.process (inputs[RESET_INPUT].getVoltage ());
375
375
if (resetCurrentState && !prevResetState) { // Rising edge detected
376
376
currentStage = 0 ; // Reset to the first stage
377
- paramQuantities[STAGE_SELECT]->setDisplayValue (currentStage);
377
+ paramQuantities[STAGE_SELECT]->setDisplayValue (currentStage+ 1 );
378
378
}
379
379
prevResetState = resetCurrentState; // Update previous state
380
380
}
0 commit comments