summaryrefslogtreecommitdiffstats
path: root/src/server/PortImpl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-04-09 21:36:36 +0000
committerDavid Robillard <d@drobilla.net>2015-04-09 21:36:36 +0000
commitdf7f539225918cfa809fd5939b813e483cb11d7c (patch)
tree5018ac04c80c120778efc39cad17163a80badeb5 /src/server/PortImpl.cpp
parent85a945468c6b065ee43ce1dc2f6e4c03eb9fe3c3 (diff)
downloadingen-df7f539225918cfa809fd5939b813e483cb11d7c.tar.gz
ingen-df7f539225918cfa809fd5939b813e483cb11d7c.tar.bz2
ingen-df7f539225918cfa809fd5939b813e483cb11d7c.zip
Fix multiple note triggers on the same sample.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5671 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/PortImpl.cpp')
-rw-r--r--src/server/PortImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp
index 910349ca..f943fbb8 100644
--- a/src/server/PortImpl.cpp
+++ b/src/server/PortImpl.cpp
@@ -246,7 +246,7 @@ PortImpl::set_voice_value(const Context& context,
const FrameTime offset = time - context.start();
// Same deal as above
if (offset < context.nframes()) {
- buffer(voice)->append_event(time - context.start(),
+ buffer(voice)->append_event(offset,
sizeof(value),
_bufs.uris().atom_Float,
(const uint8_t*)&value);