Modeling of a piano action mechanism