Now a reworked comparator stage. I gave it a proper thought and said - heck, it works anyway, and LM358/324 are workhorses that can not fail even working as comparators. Their inputs will not complain. Major problem was with odd capacitors, and it is fixed already.
I just tinkered a bit with resistor values to hit the Goldilocks zone for a LM358 stage, and I think it is OK now. My goal was finding values tat will work equally good with gain stages as they are (clipping at 0.7V) and my tinkered ones with peak at 6V, and to allow for a little bit of saturation there. All unnecessary components, except for a diode, are gone. For new builds (mine included
) I'd put 47k resistor instead of a diode, which is completely useless there. 339's are comparators with open collectors, which means there is no positive pulse on their output. With diode you can use any comparator with the same pinout, even push-pull ones - that is the purpose of such a diode. Using 339's with a 47k resistor there, or even a piece of wire (short) shall do fine.
Next will be audio, but odd as it may be - it just might be OK. I'll check it anyway.
BTW, comparators are notorious for their slow convergence in LTspice. If that happens to you, just go to LTspice control panel and check the alternative solver engine. If you are still stuck you may relax a bit on Gmin and Abstol, and put them to 1e-10. That should work.
I just tinkered a bit with resistor values to hit the Goldilocks zone for a LM358 stage, and I think it is OK now. My goal was finding values tat will work equally good with gain stages as they are (clipping at 0.7V) and my tinkered ones with peak at 6V, and to allow for a little bit of saturation there. All unnecessary components, except for a diode, are gone. For new builds (mine included

Next will be audio, but odd as it may be - it just might be OK. I'll check it anyway.
BTW, comparators are notorious for their slow convergence in LTspice. If that happens to you, just go to LTspice control panel and check the alternative solver engine. If you are still stuck you may relax a bit on Gmin and Abstol, and put them to 1e-10. That should work.
Comment