aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2017-11-21 01:23:43 +0300
committerWohlstand <admin@wohlnet.ru>2017-11-21 01:23:43 +0300
commit9c56b796c999fbe00f52f629a459cd87cde7b855 (patch)
tree14bec3fc8ffc7381aaea3c78f86153e60c0521a3
parent63404445e5f66751f7b66ca7e01ae7ae05f040c1 (diff)
downloadlibADLMIDI-9c56b796c999fbe00f52f629a459cd87cde7b855.tar.gz
libADLMIDI-9c56b796c999fbe00f52f629a459cd87cde7b855.tar.bz2
libADLMIDI-9c56b796c999fbe00f52f629a459cd87cde7b855.zip
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
-rw-r--r--utils/gen_adldata/measurer.cpp2
1 files changed, 1 insertions, 1 deletions
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<double> amplitudecurve_off;