shithub: ft²

Download patch

ref: 77c8bdbb5a35ba6ba3d7caa90b011dd3c0c164f4
parent: 6bf57d122d29d81afb4f9bbc5d689091b8d24049
author: Olav Sørensen <olav.sorensen@live.no>
date: Fri Apr 4 07:03:11 EDT 2025

Oops: fixed new getPianoKey() bug

--- a/src/ft2_replayer.c
+++ b/src/ft2_replayer.c
@@ -444,6 +444,8 @@
 		if (period > amigaPeriodLUT[0])
 			return -1; // outside left piano edge
 
+		finetune = ((int8_t)finetune >> 3) + 16; // -128..127 -> 0..31
+
 		int32_t hiPeriod = 10*12*16;
 		int32_t loPeriod = 0;
 
--