Implementing a Live Adjustable Fourier Filter

Miles's icon

Good evening (here in the UK),

I am trying to implement a Fourier Filter that I can dynamically adjust (set the lower and upper bins that do not get multiplied by 0).

I am using a pfft~ object with a subpatcher that multiplies the outputs of fftin~ with the output of some logic operators (>~, <~ and *~) on the FFT Bin Index output, such that elements outside of the min and max values are zeroed out. The min and max bins are provided to the subpatcher by inlets, the resulting numbers being passed to the second inputs of >~ and <~.

When the right hand side of >~ and <~ are hardcoded, the filtering works as expected. However, when I attempt to use the inlets of the subpatcher to set the RHS of >~ and <~, the conditions always evaluate to 0, so the filter outputs nothing.

I think I must be missing something in the handling of the logic operators and their inputs. I have attached a screenshot of the subpatcher used with the pfft~ object and would appreciate any input on what I might be missing.

Miles's icon

In case anybody is being as silly as I, here is the fixed version.

Roman Thilenius's icon

25 people were looking at it, but nobody saw.