mutate

topleveltools.mutate(client)

Makes mutation agent.

Scales duration of last note notes in staff:

>>> staff = Staff("c'4 e'4 d'4 f'4")
>>> show(staff) 
>>> mutate(staff[-2:]).scale(Multiplier(3, 2))
>>> show(staff) 

Returns mutation agent:

>>> mutate(staff[-2:])
MutationAgent(client=Selection([Note("d'4."), Note("f'4.")]))