I’m very new to electronics (still working on the Arduino Starter kit projects). My goal is to build a midi keyboard with velocity sensitivity. In every consumer design I’ve seen, this is done with two switches—with a slightly different travel distance—for every key by measuring the time between their closings.
All of these switches are read as distinct inputs with the help of multiplexing. It seemed to me that it might be redundant that both switches in each pair needs to be distinguished by individual key. I thought about this for a while, and thought about a way where the first switches would only tell the controller that a new key has been pressed, without revealing which one.
This might be done by wiring all of the first switches in parallel; each with its own resistor in series. The number of switches activated (likely <10) could be mapped to the current flowing to a single analog input. When this number rises by 1, a key has been pressed. The velocity and pitch could then be determined by the second switch.
I have no idea if this is feasible, or even if it would save more resources than a normal full diode matrix with double the amount of switches...?