Commit 29eac55d authored by Erik Faye-Lund's avatar Erik Faye-Lund
Browse files

rename period to note_period


Signed-off-by: default avatarErik Faye-Lund <kusmabite@gmail.com>
parent 839d9744
......@@ -30,7 +30,7 @@ struct pimp_channel_state
u8 effect_param;
u8 volume_command;
s32 period;
s32 note_period;
s32 final_period;
s8 volume;
......
......@@ -64,7 +64,7 @@ static void vibrato(struct pimp_channel_state *chan, s32 period_low_clamp, s32 p
-180, -161, -141, -120, -97, -74, -49, -24
};
chan->final_period = chan->period + (sine_waveform[chan->vibrato_counter & 63] * chan->vibrato_depth) / 32;
chan->final_period = chan->note_period + (sine_waveform[chan->vibrato_counter & 63] * chan->vibrato_depth) / 32;
if (chan->final_period < period_low_clamp) chan->final_period = period_low_clamp;
if (chan->final_period > period_high_clamp) chan->final_period = period_high_clamp;
......
......@@ -69,14 +69,14 @@ static void note_on(const struct pimp_mod_context *ctx, struct pimp_mixer_channe
if (ctx->mod->flags & FLAG_LINEAR_PERIODS)
{
chan->period = pimp_get_linear_period(((s32)chan->note) + chan->sample->rel_note, chan->sample->fine_tune);
chan->note_period = pimp_get_linear_period(((s32)chan->note) + chan->sample->rel_note, chan->sample->fine_tune);
}
else
{
chan->period = pimp_get_amiga_period(((s32)chan->note) + chan->sample->rel_note, chan->sample->fine_tune);
chan->note_period = pimp_get_amiga_period(((s32)chan->note) + chan->sample->rel_note, chan->sample->fine_tune);
}
chan->final_period = chan->period;
chan->final_period = chan->note_period;
}
}
......
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