From ddb014fdad7100d2ac8f550c52064b4709fc2ade Mon Sep 17 00:00:00 2001 From: Connor Nishijima Date: Tue, 13 Sep 2016 17:43:31 -0600 Subject: [PATCH] Fixed decrement / accumulator addition --- menorah_03.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menorah_03.c b/menorah_03.c index 9404612..8a668ed 100644 --- a/menorah_03.c +++ b/menorah_03.c @@ -353,7 +353,7 @@ void tune_playnote (byte chan, byte note) { if (chan < NUM_CHANS) { if (note>MAX_NOTE) note=MAX_NOTE; decrement[chan] = pgm_read_dword(decrement_PGM + note); - accumulator[chan] = ACCUM_RESTART; + accumulator[chan] += ACCUM_RESTART; // changed from '=' to '+=' for better frequency accuracy playing[chan]=true; } }