new Key()
Represents a single Key
- Source:
Properties:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
callbacks |
Array.<function()> | called when key is clicked/selected |
||
scaleFactor |
number |
<optional> |
1 | |
parent |
music21.keyboard.Keyboard | undefined | |||
id |
int | midi number associated with the key. |
||
pitchObj |
music21.pitch.Pitch | undefined | |||
svgObj |
SVGElement | undefined | SVG representing the drawing of the key |
||
noteNameSvgObj |
SVGElement | undefined | SVG representing the note name drawn on the key |
||
keyStyle |
string | '' | css style information for the key |
|
keyClass |
string | '' | css class information for the key ("keyboardkey" + this is the class) |
|
width |
number | width of key |
||
height |
number | height of key |