Module Duplex.Applications.Keyboard.Layouts.PianoLayout
Piano-style layout for the Keyboard application.
See also: Duplex.Applications.Keyboard.GridLayout
Layout
chromatic ►
_ _ _ _ _ _ _ _
▲ |_|#|#|_|#|#|#|_|
o |c|d|e|f|g|a|b|c|
c |_|#|#|_|#|#|#|_|
t |c|d|e|f|g|a|b|c|
a |_|#|#|_|#|#|#|_|
v |c|d|e|f|g|a|b|c|
e |_|#|#|_|#|#|#|_|
▼ |c|d|e|f|g|a|b|c|
This layout attemps to emulate a traditional piano keyboard in a grid. As such, this type of layout will require at least two rows of buttons (one for the black and one for the white keys).
Note: this layout works best when the instrument itself does not have a harmonic scale. When this is the case, neighbouring keys will light up as you are playing - to show you that they have an identical pitch
Functions
get_pitches_from_index (idx) | overridden method |
Functions
- get_pitches_from_index (idx)
-
overridden method
Parameters:
- idx print("PianoLayout getpitchesfrom_index(idx)",idx)
See also: