Commit 41640d65 authored by Erik Faye-Lund's avatar Erik Faye-Lund
Browse files

Added support for the K-command (EFF_KEY_OFF).

git-svn-id: https://pimpmobile.svn.sourceforge.net/svnroot/pimpmobile/trunk@430 3d5ecaf0-f903-0410-b953-c2c1a4d75763
parent a71c9eb4
......@@ -419,7 +419,15 @@ static void pimp_mod_context_update_row(struct pimp_mod_context *ctx)
case EFF_SET_GLOBAL_VOLUME: EFFECT_MISSING(ctx, chan->effect); break;
case EFF_GLOBAL_VOLUME_SLIDE: EFFECT_MISSING(ctx, chan->effect); break;
case EFF_KEY_OFF: EFFECT_MISSING(ctx, chan->effect); break;
case EFF_KEY_OFF:
if (chan->effect_param == ctx->curr_tick)
{
chan->sustain = FALSE;
volume_dirty = TRUE; /* we need to update volume if note off killed note */
}
break;
case EFF_SET_ENVELOPE_POSITION: EFFECT_MISSING(ctx, chan->effect); break;
case EFF_PAN_SLIDE: EFFECT_MISSING(ctx, chan->effect); break;
......@@ -594,6 +602,14 @@ static void pimp_mod_context_update_tick(struct pimp_mod_context *ctx)
}
break;
case EFF_KEY_OFF:
if (chan->effect_param == ctx->curr_tick)
{
chan->sustain = FALSE;
volume_dirty = TRUE; /* we need to update volume if note off killed note */
}
break;
case EFF_MULTI_RETRIG:
chan->retrig_tick++;
if (chan->retrig_tick == chan->note_retrig)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment