From fcd50f3d31dcc94ebcaf1f5a86f811973462bb57 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Thu, 10 Sep 2020 01:51:48 +0300 Subject: Fixed an accuracy of Win9X frequency model --- src/adlmidi_opl3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/adlmidi_opl3.cpp') diff --git a/src/adlmidi_opl3.cpp b/src/adlmidi_opl3.cpp index b4d116b..5a44c13 100644 --- a/src/adlmidi_opl3.cpp +++ b/src/adlmidi_opl3.cpp @@ -452,7 +452,7 @@ void OPL3::noteOn(size_t c1, size_t c2, double hertz) // Hertz range: 0..131071 mul_offset++; } - ftone = octave + static_cast(hertz + 0.5); + ftone = octave + static_cast(hertz /*+ 0.5*/); uint32_t chn = g_channelsMap[cc1]; const adldata &patch1 = m_insCache[c1]; const adldata &patch2 = m_insCache[c2 < m_insCache.size() ? c2 : 0]; -- cgit v1.2.3