Although the schematic says TL072 I ended up using a TL074 and made 4 of them in one module. The lower opamp shows a 2nd stage, sharing the comparator’s threshold voltage resistors at the inverting input with the top opamp. The rest of 4 can be implemented in a similar fashion.
The jack should connect the input to GND if no patch cable is connected.