Module Duplex.Applications.Keyboard.GridLayout
Custom grid layouts for the Keyboard application.
About
Override this class with your own implementation to create custom layouts for the Keyboard class
Any class inside the 'Layouts' subfolder will automatically be included on startup, and made available from the Keyboard options panel
See also: Duplex.Applications.Keyboard
Functions
cache () | call this to rebuild the pitch <-> index cache (for example, when transposing or otherwise changing the layout) |
get_pitches_from_index (idx) | when the user is pressing a key, or while updating display |
update_grid () | update the display of the controller |
Functions
- cache ()
- call this to rebuild the pitch <-> index cache (for example, when transposing or otherwise changing the layout)
- get_pitches_from_index (idx)
-
when the user is pressing a key, or while updating display
Parameters:
- idx (int) the control index
Returns:
-
table, matching note pitch(es)
- update_grid ()
- update the display of the controller