So I tested a bit further this morning and it works better now.
I use a Roland Juno Alpha as a midi controller and The Juno sends CC123 (Panic) when all the keys are released. I don’t know exactly why, but I put a filter pipe that filters everything but Notes On/ Notes Off before the sutain pipe and it is working now.
That being said, The behaviour of the sustain pipe is a bit strange.
I expected the same behaviour than a classical synth, for example :
- I play a chord (3 notes) on the left hand and just one note on the right hand
- I press the sustain pedal
- I release the chords keys
- I release the sustain pedal but still maintain the note on the right hand
–> The note on the right hand should be maintained but it’s not, 4 Notes Off are sent by the sustain pipe (verified with MidiOx) although the keyboard controller only sent 3 Notes Off.
Another example is when I play 2 chords consecutively with common notes, for example :
- I play a 3 notes chord (C;E;G)
- I press the sustain pedal
- I release the chords keys
- I play the second 3 notes chord (E;G;B)
- I release the sustain pedal
–> I expect that the second chord is still maintained but it’s not.
Don’t know if it’s clear… sorry for the bad english spoken