WIP code but I added infos here: https://github.com/vikbez/PlayerPianoController/
(old pre-electronics player pianos could do dynamics but most relied heavily on input from the operator to do so - with various limitations - it's probably a good plan to avoid directly imitating them :-)