From cc2eb2e38c4c8cb343b81974b774cef0af3dce4e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 6 Oct 2008 02:00:36 +0000 Subject: Fix voice number (display, and use, 0 based voice numbers). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1622 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/ControlPanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 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); } -- cgit v1.2.1