problem on logic 0 at 4027 ic
It's probably caused by noise on the digital ground. One solution is to use a series diode as so: 







simulate this circuit &ndash; Schematic created using CircuitLab

That will prevent noise on the digital ground relative to the amplifier ground of less than a couple hundred mV from being heard.