OSDN Git Service

Add more options to --voice-hpf
authorStarg <starg@users.osdn.me>
Sat, 20 Mar 2021 15:02:45 +0000 (00:02 +0900)
committerStarg <starg@users.osdn.me>
Sat, 20 Mar 2021 15:03:44 +0000 (00:03 +0900)
timidity/timidity.c

index 92c4211..f26a484 100644 (file)
@@ -5508,13 +5508,17 @@ static inline int parse_opt_voice_hpf(const char *arg)
                opt_hpf_def = 1;
                break;
        case '2':
-       case 'c':       /* lpf12-3 */
+       case 'c':       /* hpf12-3 */
                opt_hpf_def = 2;
                break;
        case '3':
        case 'o':       /* 1 pole 6db/oct */
                opt_hpf_def = 3;
                break;
+       case '4':
+       case 'i':       /* Resonant IIR */
+               opt_hpf_def = 4;
+               break;
        default:
                ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "Invalid voice HPF type %s", arg);
                return 1;