Skip to content

Commit

Permalink
Fixed bug 2969 - Manual coding mistake in recompute_amp function
Browse files Browse the repository at this point in the history
Nitz

In recompute_amp(int v) function:

under if condition:
if (note>0 && drumpanpot[chan][note]>=0) panning = drumvolume[chan][note];

This should be panning = drumpanpot[chan][note] instead of drumvolume.
  • Loading branch information
slouken committed May 3, 2015
1 parent 13941a7 commit 27f5dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timidity/playmidi.c
Expand Up @@ -326,7 +326,7 @@ static void recompute_amp(int v)
{
int note = voice[v].sample->note_to_use;
if (note>0 && drumvolume[chan][note]>=0) vol = drumvolume[chan][note];
if (note>0 && drumpanpot[chan][note]>=0) panning = drumvolume[chan][note];
if (note>0 && drumpanpot[chan][note]>=0) panning = drumpanpot[chan][note];
}

if (opt_expression_curve == 2) curved_expression = 127.0 * vol_table[expr];
Expand Down

0 comments on commit 27f5dff

Please sign in to comment.