manoreken2 wrote:Hi groovy,
Yes, 1M resistor is there to `pull-down', to return 0V when TRS plug is not connected.
> I do not understand, what is the idea of the squareroot in your code: float sensorSq = sqrt(sensor01);
I added a explanation of this sqrt on my blog page. Sqrt is there for pedal feeling improvement.
Ah, thank you, manoreken2!
Yes, the response of the sustain-pedal can be calibrated with pianoteq alone, nothing else needed. I did this procedure with my Roland DP-10 this morning (after using just the defaults for a few weeks).
This is my result with the calibration-assistant:

The assistant detects, that the output range of the Arduino is 0-127 and automatically suggests/sets point 1, 2, 4 and 5 in the curve.
The midpoint for half-pedalling (point 3) is a bit tricky with the assistant. I could not determine it very reproducibly with the assistant-help. So I measured the throw(?) of the Roland-pedal at the tip (26 mm) and pressed it down halfway (13 mm). The assistant then sets the midpoint to [60; 64].
It is a good idea, to finetune the midpoint further manually in pianoteq with [x; 64] for individual preference.
thnx
PS: The curve: [0, 10, 60, 117, 127; 0, 0, 64, 127, 127]
Last edited by groovy (07-06-2015 09:50)