From d653c52caf8df41d279b85bd238e45754836c3ab Mon Sep 17 00:00:00 2001
From: David Robillard <d@drobilla.net>
Date: Sun, 6 Jan 2013 16:25:30 +0000
Subject: 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
---
 src/server/PortImpl.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'src')

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());
-- 
cgit v1.2.1