summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-10-06 02:00:36 +0000
committerDavid Robillard <d@drobilla.net>2008-10-06 02:00:36 +0000
commitcc2eb2e38c4c8cb343b81974b774cef0af3dce4e (patch)
tree8b01ba3296f5f3573ad3729db6c4d31d9906f754 /src
parentc208dd6866916e3ee6158002cc621cd6fa1a66bb (diff)
downloadingen-cc2eb2e38c4c8cb343b81974b774cef0af3dce4e.tar.gz
ingen-cc2eb2e38c4c8cb343b81974b774cef0af3dce4e.tar.bz2
ingen-cc2eb2e38c4c8cb343b81974b774cef0af3dce4e.zip
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
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);
}