OSDN Git Service

Fix fatal typo.
authorSaito <saito2@digitalme.com>
Sun, 15 Feb 2004 08:21:31 +0000 (08:21 +0000)
committerSaito <saito2@digitalme.com>
Sun, 15 Feb 2004 08:21:31 +0000 (08:21 +0000)
ChangeLog
timidity/playmidi.c

index 0a80d03..1ef6e85 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,8 @@
          Fix for Win32.
        * configs/msc[67]-project.zip:
          Add portaudio files and modify projects.
+       * timidity/playmidi.c:
+         Fix fatal typo around Chamberlin filter.
 
 2004-02-14  Saito <saito2@digitalme.com>
 
index 05971f1..289f6d6 100644 (file)
@@ -1197,7 +1197,10 @@ void recompute_voice_filter(int v)
        else if(fc->reso_dB > 96.0f) {fc->reso_dB = 96.0f;}
 
        if(fc->type == 1) {     /* Chamberlin filter */
-               if(fc->start_flag == 0 && fc->freq > play_mode->rate / 6) {fc->type = 0;}       /* turn off. */ 
+               if(fc->freq > play_mode->rate / 6) {
+                       if (fc->start_flag == 0) {fc->type = 0;}        /* turn off. */ 
+                       else {fc->freq = play_mode->rate / 6;}
+               }
                if(fc->reso_dB > CHAMBERLIN_RESONANCE_MAX) {fc->reso_dB = CHAMBERLIN_RESONANCE_MAX;}
        } else if(fc->type == 2) {      /* Moog VCF */
                if(fc->reso_dB > fc->orig_reso_dB / 2) {