Skip to content

how best to handle keyboard views - octave transposition? #281

Open
@adcxyz

Description

@adcxyz

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)
		}
	)
]
)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions