djsfantasi
- Joined Apr 11, 2010
- 9,163
And what would happen if one string is pressed on two or more frets? The associated string would have two resistors in parallel, making the value returned by the R2R DAC incorrect...You are half way there. Connect each string to the +5 V through a different resistor.
Specifically, binary-weighted resistance values. For six strings, that would be something like 1K, 2K, 3.9K 8.2K, 16K, 33K. The current available at each fret will vary over a 64:1 range, with a unique value for every possible string combination. The guitar now is a D/A converter, with the digital bits being the player's fingers.
I used 5% resistor values above, but the closest 1% resistor values will work much better.
ak
If one could guarantee that every string only contacted one fret, this is a clever solution. But you can’t guarantee that and the TS has stated that as an issue to be resolved.
Consider the matrix of string/fret possibilities as a large keyboard problem. The solution there is to scan all rows (frets) and columns (strings). Duplicate presses are resolved by assigning a priority to each fret in software. If one press is more distant than another press from the pickups, the one closest to the pickup is the proper choice.