In that schematic, shouldn't R1 be between the diodes and cap with the cap wired direct to the first inverter input. Otherwise, when your trimpot is wired all the way to one side or the other, that circuit's output will sort of be short driving the cap distorting the second inverter's output when the trimpot is set to 0% or 100%.