summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-01-06 16:25:30 +0000
committerDavid Robillard <d@drobilla.net>2013-01-06 16:25:30 +0000
commitd653c52caf8df41d279b85bd238e45754836c3ab (patch)
treebbf164a0ad145cdbda3640f6eea077069e50f572 /src/server
parent20972937dcd536c280bb54c10c5e4af0cbf86b6c (diff)
downloadingen-d653c52caf8df41d279b85bd238e45754836c3ab.tar.gz
ingen-d653c52caf8df41d279b85bd238e45754836c3ab.tar.bz2
ingen-d653c52caf8df41d279b85bd238e45754836c3ab.zip
Fix incorrect setting of CV values in the middle of a cycle which resulted in two cycles of the same partially set buffer (fix #873).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4901 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server')
-rw-r--r--src/server/PortImpl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp
index 9c4c7b5e..61fd7be9 100644
--- a/src/server/PortImpl.cpp
+++ b/src/server/PortImpl.cpp
@@ -198,9 +198,7 @@ PortImpl::update_set_state(Context& context, uint32_t voice)
SetState& state = _set_states->at(voice);
switch (state.state) {
case SetState::HALF_SET_CYCLE_1:
- if (context.start() > state.time) {
- state.state = SetState::HALF_SET_CYCLE_2;
- }
+ state.state = SetState::HALF_SET_CYCLE_2;
break;
case SetState::HALF_SET_CYCLE_2: {
buffer(voice)->set_block(state.value, 0, context.nframes());