makeRest

maelzel.scoring.makeRest(duration, offset=None, dynamic='', annotation='')[source]

Shortcut function to create a rest notation.

A rest is only needed when stacking notations within a container like Chain or Track, to signal a spacing between notations. Just explicitely setting the offset of a notation has the same effect

Parameters:
  • duration (Union[float, int, Fraction]) – the duration of the rest

  • offset (Union[float, int, Fraction, None]) – the start time of the rest. Normally a rest’s offset is left unspecified (None)

  • dynamic (str) – if given, attach this dynamic to the rest

  • annotation (str) – if given, attach this text annotation to the rest

Return type:

Notation

Returns:

the created rest (a Notation)