Rest

maelzel.core.event.Rest(dur, offset=None, label='', dynamic='')[source]

Creates a Rest.

A Rest is just a Note with pitch 0 and amp 0 (that is why this is a function and not a class).

To test if an item is a rest, call isRest()

Parameters:
  • dur (Union[float, Rational, Fraction, str]) – duration of the Rest

  • offset (Union[float, Rational, Fraction, None]) – time offset of the Rest

  • label – a label for this rest

  • dynamic – a rest may have a dynamic

Return type:

Note

Returns:

the created rest

Note

this is just a shortcut to Note.makeRest