Class: Key

.keyboard. Key

new Key()

Represents a single Key

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

Source:
Music21j, Copyright © 2013-2021 Michael Scott Asato Cuthbert.
Documentation generated by JSDoc 3.6.3 on Wed Jul 31st 2019 using the DocStrap template.