How do I run sox with jack so that sox takes the input from jack, does something (in my case, a low pass filter) and outputs the processed stream to jack.
sox foo.wav bar.wav lowp 1000.0
Will take an input wav and output to another wav, however I need something like the following:
sox JACK_INPUT JACK_OUTPUT lowp 1000.0
Where I can use jack to connect any sound source to the JACK_INPUT, and connect the JACK_OUTPUT that sox has applied a low pass filter to any other port in the processing chain in jack.
If this isn't possible any help with alternative suggestions would be appreciated. Please note that the solution needs to be able to work with jack on linux, allow low pass/high pass filtering and preferably biquad filters like sox. Bonus points if connections can be uniquely named so that a script could launch a separate filter for each speaker.
Many thanks in advance.