From bc0f5b77bc52054216790d48a7d09dc36c51b4f4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 20 Mar 2017 02:10:32 +0100 Subject: Fix zipper noise when dragging CV port values --- src/server/PortImpl.cpp | 3 ++- src/server/PortImpl.hpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/server') diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp index 1db98840..b7331aff 100644 --- a/src/server/PortImpl.cpp +++ b/src/server/PortImpl.cpp @@ -229,6 +229,7 @@ PortImpl::set_control_value(const RunContext& context, Sample value) { for (uint32_t v = 0; v < _poly; ++v) { + update_set_state(context, v); set_voice_value(context, v, time, value); } } @@ -284,7 +285,7 @@ PortImpl::set_voice_value(const RunContext& context, } void -PortImpl::update_set_state(RunContext& context, uint32_t v) +PortImpl::update_set_state(const RunContext& context, uint32_t v) { Voice& voice = _voices->at(v); SetState& state = voice.set_state; diff --git a/src/server/PortImpl.hpp b/src/server/PortImpl.hpp index 27b3db2f..b07a4086 100644 --- a/src/server/PortImpl.hpp +++ b/src/server/PortImpl.hpp @@ -143,7 +143,7 @@ public: return _prepared_voices->at(voice).buffer; } - void update_set_state(RunContext& context, uint32_t voice); + void update_set_state(const RunContext& context, uint32_t voice); void set_voice_value(const RunContext& context, uint32_t voice, -- cgit v1.2.1