diff options
Diffstat (limited to 'src/adlmidi_opl3.cpp')
-rw-r--r-- | src/adlmidi_opl3.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/adlmidi_opl3.cpp b/src/adlmidi_opl3.cpp index be84203..5690721 100644 --- a/src/adlmidi_opl3.cpp +++ b/src/adlmidi_opl3.cpp @@ -1058,6 +1058,9 @@ void OPL3::noteOn(size_t c1, size_t c2, double tone) // Hertz range: 0..131071 double hertz; + if(tone < 0.0) + tone = 0.0; // Lower than 0 is impossible! + // Use different frequency formulas in depend on a volume model switch(m_volumeScale) { |