The Fatar 88 key piano uses 176 switches. Two switches are used for each key. They are labelled MK (0-10) and BR(0-10), total 22 switches. They are used in matrix fashion with two sets of "strobes" labelled T0 - T7. My solution to dealing with the matrix is to connect the MK and BK signals to J3DOUT and J4DOUT (Only 4 outputs are used with J4DOUT) The LH keyboard signals T0-T7 are used as inputs to J3DIN and the RH ones to J4DIN. All 16 inputs are used. This means that we have a 16 bit wor