Piano:
Filter:
Modality-toolkit/Classes (extension) | GUI

Piano
ExtensionExtension

layout for piano keyboards

Description

First code examples:

Class Methods

.blackNotes

the indices of the black keys in the octave

.allXs

.whiteXs

.blackXs

the x positions of white, black and all 12 keys in the octave.

.all12

events with layout info for the 12 keys in the octave.

.layout

Arguments:

from
to

create a list of layout events for keys from from to to: Piano.layout(60, 72);

.pos

Arguments:

note
start

create info event for single key relative to start (lowest note displayed) Piano.pos(24, 21);

Examples