konradh
Also, don't shoot me for asking, but are you 100% sure you have the right pedal and it is plugged into the right place? Just trying to isolate the problem, and, trust me, I have wasted hours trying to figure out a problem that was caused by a cable mix-up.
Yeah, I'm sure the pedal is the right one because my piano (Kawai L1) works in stand-alone and I have played for years on it, the sustain pedal has no problem.
Actually, I may forgot to say that my sustain pedal plays a E5 (and not E4, whatever...) but also does his job ^^ .
I recorded something to test my pedal like you suggested it, and the events list show me this :
Controller - Sustain Switch - 127
Controller - Sustain Switch - 127
Controller - Sustain Switch - 0
Controller - Sustain Switch - 127
Controller - Sustain Switch - 0
Note - E5 - 127
Note - E5 - 127
Note - E5 - 127
Controller - Sustain Switch - 127
...
Firstly my pedal seems to be perfect, then after pressing 5-7 times it plays a E5 and the Controller is disabled, then the pedal plays alternatively a note or works as a controller...
It seems there is something which misinterpret the signal a moment then turns off the Controller effect...
By the way, I have also a odd connection and I realize it may be the tricky part... I'm using a converter cable (MIDI to USB) and if I connect it like I should (Cable In -> Piano Out and Cable Out -> Piano In) it doesn't work. If I invert those cables Sonar detects the midi signal but a lot of note play endlessly... the only solution if found is to connect the Cable Out in the Piano Out only and let the Cable In unplugged...
I suddenly realize that it could be the problem's origin but like I said, I have no sound in the other cases.