From e48a6704b2c6a2c1b9d275d75c44fa7d91c7f14f Mon Sep 17 00:00:00 2001 From: hemmer <915048+hemmer@users.noreply.github.com> Date: Tue, 23 Mar 2021 08:58:46 +0000 Subject: [PATCH] Don't use zero based indexing for tooltips --- src/Percall.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Percall.cpp b/src/Percall.cpp index 4358ec4..d85bc33 100644 --- a/src/Percall.cpp +++ b/src/Percall.cpp @@ -46,11 +46,11 @@ struct Percall : Module { Percall() { config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS); for (int i = 0; i < 4; i++) { - configParam(VOL_PARAMS + i, 0.f, 1.f, 1.f, "Ch " + std::to_string(i) + " level", "%", 0, 100); - configParam(DECAY_PARAMS + i, 0.f, 1.f, 0.f, "Ch " + std::to_string(i) + " decay time"); + configParam(VOL_PARAMS + i, 0.f, 1.f, 1.f, "Ch " + std::to_string(i + 1) + " level", "%", 0, 100); + configParam(DECAY_PARAMS + i, 0.f, 1.f, 0.f, "Ch " + std::to_string(i + 1) + " decay time"); } for (int i = 0; i < 2; i++) { - std::string description = "Choke " + std::to_string(2 * i) + " to " + std::to_string(2 * i + 1); + std::string description = "Choke " + std::to_string(2 * i + 1) + " to " + std::to_string(2 * i + 2); configParam(CHOKE_PARAMS + i, 0.f, 1.f, 0.f, description); } }