Picked up an "as is" Yamaha PSR-12 synth keyboard from shopgoodwill.com and I have a bit of a conundrum. Everything appears to work except a single key.
Initially I plugged it in and didn't get any sound. It still didn't make any sound cleaning the buttons, pads and contacts. After leaving it for a few hours it started making noise ranging from static to tones. I left it on overnight and it is now *mostly* working.
Now everything appears to be functioning as expected
except a single piano key. When I press it, no tone is emitted, but it will temporarily silence any rhythm which may be playing. Additionally, it I press it after an adjacent tone it will "sustain" the playing tone even after releasing the keys.
This implies the YM3014 (DAC) and YM3812 (OPL2) are functioning as expected, but the XC631A0 (CPU) is having trouble distinguishing which button is being pressed (or something worse).
The clock doesn't look very good, but not sure how to debug the clock cleanliness. This clock is shared between the YM3812 and XC631A0. It is possible the clock "stabilized" after leaving it on for a bit, but it seems unlikely that the clock is just marginal enough to get in the way of decoding only a single key press repeatable 100% for the last few hours.

The contacts are clean and the 74HC365 buffers are acting as expected and passing the expected wave form to the CPU.
Diodes tested fine.
The waveform this key uses is an "inverted" waveform with a pullup on pin 20. Other keys which feed this this waveform back to other CPU pins function as expected.


Blue is the waveform output generated which is shared by the two buffers which multiplex a few input pins.
Yellow is the enable line which toggles between the buffers

Inverted buffer enable lines. The enable lines of the two buffers are connected via a hex inverter.

Blue is the CPU input line after the buffer with the key pressed
Yellow is the inverted enable line hooked to the other inverter.

Documentation collected here:
https://ipfs.io/ipfs/QmfGcF7z3anD4MvqL2k5zfLJFHq3FxwyXYrs2Su4WxxGgx