summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/ControlPanel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/ControlPanel.cpp b/src/gui/ControlPanel.cpp
index 7da07dbb..4bec3606 100644
--- a/src/gui/ControlPanel.cpp
+++ b/src/gui/ControlPanel.cpp
@@ -230,7 +230,7 @@ ControlPanel::value_changed(SharedPtr<PortModel> port, float val)
App::instance().engine()->set_port_value(port->path(), Atom(val));
port->value(val);
} else {
- int voice = _voice_spinbutton->get_value_as_int() - 1;
+ int voice = _voice_spinbutton->get_value_as_int();
App::instance().engine()->set_voice_value(port->path(), voice, Atom(val));
port->value(val);
}