Open
Description
Currently, most desc files of MIDI keyboard device create guis where all reachable keys are shown, e.g. for a nanokey, keys 0-120. this is useful to get to all keys, but eats lots of gui space.
One option would be creating a KeysView class that knows to display say 25 keys, plus a gui element for octave transposition - then one can reach all keys if needed, and by default, the guis shows only the physical keys and their default note values.
// Notation in desc file could be:
(
// ...
elements: [
(
key: \pkey,
style: (guiGroup: \keysView, numKeys: 25, defaultLowest: 48, octaves: (-3..3)),
shared: (groupType: \noteOnOff),
elements: (0..120).collect { |num|
(midiNum: num)
}
)
]
)