Interface: KeyState
Defined in: react/src/components/Piano/index.tsx:44
What a key is, when PianoProps.label or keyProps is asked about it.
Properties
active
active: boolean;
Defined in: react/src/components/Piano/index.tsx:49
Whether the note is currently sounding.
disabled
disabled: boolean;
Defined in: react/src/components/Piano/index.tsx:51
Whether the note is above PianoProps.midiMax and cannot sound.
index
index: number;
Defined in: react/src/components/Piano/index.tsx:46
Position in the note range, counting from noteRange.first.
keyType
keyType: "black" | "white";
Defined in: react/src/components/Piano/index.tsx:47