Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
adcxyz opened this issue Nov 13, 2016 · 3 comments
Open

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

adcxyz opened this issue Nov 13, 2016 · 3 comments

Comments

@adcxyz
Copy link
Contributor

adcxyz commented Nov 13, 2016

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)
		}
	)
]
)
@LFSaw
Copy link
Member

LFSaw commented Apr 23, 2017

Sounds good to me. I was wondering how much we need to follow the geometry of the H/W devices... maybe it is just enough to give hints on available real-estate (row/column/width/height) and let the gui figure out by itself, how much it should show?

@adcxyz
Copy link
Contributor Author

adcxyz commented Jul 8, 2017

We could simply go by how many physical keys the device really has, and do octave transposition based on that, like paging. Actually, if one can define an element to be in any subset of all pages,
that could be done rather easily:
Keys 24-49 could be in page0, 36-61 in page1, 48-73 in page2 etc.

@LFSaw
Copy link
Member

LFSaw commented Jul 12, 2017

An alternative would be to show only mas 2 ocatves (more are really difficult to handle screen-real-estate-wise). IMHO, there's no point of showing 80 keys, even if that master keyboard of yours has them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants