commit 252fc5e9896155c03e4e8642092589c9b7e4fec3 parent fdfa2bc1a33b0e566fb6c2d6762475c67b7582bd Author: Olav Sørensen <olav.sorensen@live.no> Date: Thu, 1 Apr 2021 11:26:26 +0200 Added some comments Diffstat:
M | src/ft2_replayer.c | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ft2_replayer.c b/src/ft2_replayer.c @@ -528,8 +528,8 @@ static void startTone(uint8_t ton, uint8_t effTyp, uint8_t eff, stmTyp *ch) if (ton != 0) { - const uint16_t tmpTon = ((ton-1) << 4) + (((int8_t)ch->fineTune >> 3) + 16); - if (tmpTon < MAX_NOTES) + const uint16_t tmpTon = ((ton-1) << 4) + (((int8_t)ch->fineTune >> 3) + 16); // 0..1935 + if (tmpTon < MAX_NOTES) // tmpTon is *always* below MAX_NOTES here, so this check is not really needed { assert(note2Period != NULL); ch->outPeriod = ch->realPeriod = note2Period[tmpTon];