I've been trying to implement highpass filters, and found that including the mode in the constructor is ineffective - but changing the mode later seems to work but also throws an error.
this should be a highpass filter (mode 1) but instead implements a lowpass filter:
I've been trying to implement highpass filters, and found that including the mode in the constructor is ineffective - but changing the mode later seems to work but also throws an error.
this should be a highpass filter (mode 1) but instead implements a lowpass filter:
this correctly changes the mode to highpass but throws an error: