PieterP:
Try this. Change the factor of the EMA according to your sampling rate.
thanks
I tried but no longer detects the potentiometers,
perhaps because of multiplexers?
no midi message is transmitted, first with the old code that you gave me it gaves the midi messages but trembled as usual
thanks a lot for your patience