From 9c56b796c999fbe00f52f629a459cd87cde7b855 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Tue, 21 Nov 2017 01:23:43 +0300 Subject: Fixed a recentny found long-time bug in measurer: a wrong note-off channels TODO: Re-generate entire cache as because of incorrect note-off bug, entire data was written incorrectly --- utils/gen_adldata/measurer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/gen_adldata/measurer.cpp b/utils/gen_adldata/measurer.cpp index f7108f6..7618d7d 100644 --- a/utils/gen_adldata/measurer.cpp +++ b/utils/gen_adldata/measurer.cpp @@ -144,7 +144,7 @@ DurationInfo MeasureDurations(const ins &in) // Keyoff the note for(unsigned n = 0; n < n_notes; ++n) - WRITE_REG(0xB0 + n, (x[n] >> 8) & 0xDF); + WRITE_REG(0xB0 + n * 3, (x[n] >> 8) & 0xDF); // Now, for up to 60 seconds, measure mean amplitude. std::vector amplitudecurve_off; -- cgit v1.2.3