Class: Rest

music21.note. Rest

new Rest(ql)

Represents a musical rest.

Parameters:
Name Type Argument Default Description
ql number <optional>
1.0

length in number of quarterNotes

Properties:
Name Type Argument Default Description
isNote Boolean <optional>
false
isRest Boolean <optional>
true
name string <optional>
'rest'
lineShift number <optional>

number of lines to shift up or down from default

color string | undefined <optional>
'black'

color of the rest

Source:

Extends

Methods

<static> Rest#vexflowNote() → {Vex.Flow.StaveNote}

Returns a Vex.Flow.StaveNote that approximates this rest.
Corrects for bug in VexFlow that renders a whole rest too low.

Source:
Returns:
Type
Vex.Flow.StaveNote
Music21j, Copyright © 2013-2018 Michael Scott Cuthbert and cuthbertLab.
Documentation generated by JSDoc 3.5.5 on Wed Jul 4th 2018 using the DocStrap template.