Hi all,
I am trying to implement an IEC 1260 compliant third octave band filter with a mid frequency of 125Hz. This is only possible via downsampling. Therefore I made a subpatch with [switch~ 64 1 0.5] which works most of the time, see attached patch (requires iemlib for lp filters).
Sometimes however, I get strong high frequency disturbances. I suspect a bug in switch, but maybe I am missing something?
Thanks for any help, Matthias
#N canvas 532 151 539 446 10; #X obj 134 228 div 2; #X obj 178 228 mod 2; #X obj 104 308 pow 0; #X msg 104 285 10; #X obj 74 257 delay 10; #X floatatom 104 342 5 0 0 0 - - -; #X obj 178 256 select 0 1; #X msg 178 285 1; #X msg 210 285 3; #X obj 139 372 * 1; #X floatatom 139 399 5 0 0 0 - - -; #X floatatom 156 198 5 0 0 0 - - -; #X msg 119 122 1; #X msg 192 122 1; #X obj 119 147 + 1; #X obj 192 147 - 1; #X obj 192 172 * -1; #X msg 156 122 0; #X connect 0 0 2 1; #X connect 0 0 4 0; #X connect 1 0 6 0; #X connect 2 0 5 0; #X connect 3 0 2 0; #X connect 4 0 3 0; #X connect 5 0 9 0; #X connect 6 0 7 0; #X connect 6 1 8 0; #X connect 7 0 9 1; #X connect 8 0 9 1; #X connect 9 0 10 0; #X connect 11 0 14 1; #X connect 11 0 15 1; #X connect 11 0 0 0; #X connect 11 0 1 0; #X connect 12 0 14 0; #X connect 13 0 15 0; #X connect 14 0 11 0; #X connect 15 0 16 0; #X connect 16 0 11 0; #X connect 17 0 11 0;