Skip to content

Commit

Permalink
Don't keyoff on non-trapped, non-looping macros
Browse files Browse the repository at this point in the history
  • Loading branch information
jackoalan committed Nov 21, 2017
1 parent 862c618 commit cab7402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Voice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cab7402

Please sign in to comment.