How to set the duration of a rest?
I started to write a plugin to autogenerate simple scores in MuseScore 2.x. I can't find a way to add rests with a specific duration.
Does anyone know how to:
a) Split a rest in two or more rests or
b) Replace a given chord by a rest with the same duration
I kinda managed to create a new Rest object, but adding it to the score without a duration is not possible. So i might have to add a Fraction object to the rests duration. But i can't manage to initiate or copy a Fraction object.