new Rest(ql)
Represents a musical rest.
Parameters:
| Name | Type | Argument | Default | Description |
|---|---|---|---|---|
ql |
number |
<optional> |
1.0 | length in number of quarterNotes |
- Source:
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 |
Extends
Methods
-
<static> Rest#vexflowNote() → {Vex.Flow.StaveNote}
-
Returns a
Vex.Flow.StaveNotethat approximates this rest.
Corrects for bug in VexFlow that renders a whole rest too low.- Source:
Returns:
- Type
- Vex.Flow.StaveNote