diff options
Diffstat (limited to 'src/server/PortImpl.cpp')
-rw-r--r-- | src/server/PortImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp index 066ac005..45a5a082 100644 --- a/src/server/PortImpl.cpp +++ b/src/server/PortImpl.cpp @@ -415,7 +415,7 @@ PortImpl::clear_buffers(const RunContext& ctx) case PortType::CV: for (uint32_t v = 0; v < _poly; ++v) { Buffer* buf = buffer(v).get(); - buf->set_block(_value.get<float>(), 0, buf->nframes()); + buf->set_block(_value.get<float>(), 0, ctx.nframes()); SetState& state = _voices->at(v).set_state; state.state = SetState::State::SET; state.value = _value.get<float>(); |