--- linuxsampler/trunk/src/engines/EngineBase.h 2017/05/24 20:05:38 3205 +++ linuxsampler/trunk/src/engines/EngineBase.h 2017/05/25 10:53:45 3207 @@ -984,6 +984,10 @@ // script event object RTList::Iterator itScriptEvent = pChannel->pScript->pEvents->allocAppend(); + // if event handler uses polyphonic variables, reset them + // to zero values before starting to execute the handler + if (pEventHandler->isPolyphonic()) + itScriptEvent->execCtx->resetPolyphonicData(); ProcessScriptEvent( pChannel, itEvent, pEventHandler, itScriptEvent );