From 98e1c1994b8bd75113ffe971eebbfb0acf0d2e81 Mon Sep 17 00:00:00 2001 From: Diegoisawesome Date: Mon, 24 Sep 2018 02:00:09 -0500 Subject: [PATCH] Completely blind guess to fix compression score --- tools/mid2agb/midi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/mid2agb/midi.cpp b/tools/mid2agb/midi.cpp index c7a4389b9..744ef42e8 100644 --- a/tools/mid2agb/midi.cpp +++ b/tools/mid2agb/midi.cpp @@ -836,7 +836,7 @@ int CalculateCompressionScore(std::vector& events, int index) } else { - score += 2; + score++; } } @@ -900,7 +900,7 @@ void Compress(std::vector& events) return; } - if (CalculateCompressionScore(events, i) > 6) + if (CalculateCompressionScore(events, i) >= 6) { CompressWholeNote(events, i); }