Don't keyoff on non-trapped, non-looping macros

This commit is contained in:
Jack Andersen 2017-11-21 00:35:38 -10:00
parent 862c618b7e
commit cab7402104
1 changed files with 1 additions and 1 deletions

View File

@ -855,7 +855,7 @@ void Voice::keyOff()
loadSoundObject(m_keyoffTrap.macroId, m_keyoffTrap.macroStep, m_state.m_ticksPerSec, m_state.m_initKey,
m_state.m_initVel, m_state.m_initMod);
}
else
else if (!m_curSample || m_curSample->first.m_loopLengthSamples)
_macroKeyOff();
for (const std::shared_ptr<Voice>& vox : m_childVoices)