-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
LayeredMenu: allows multiple presses on a single shortcut to cycle #3209
base: community
Are you sure you want to change the base?
Conversation
6980a90
to
a185ef2
Compare
nice ! feels good
not sure how necessary or QoL improving this would be, but maybe entering the 2nd shortcut should occur on release instead of on press. |
Hm. relase vs press would be quite tricky right now, esp. if we don't want to enter normal shortcuts on release. Another option would be to eg. make TRIPLET VIEW change the layer when in shortcut. |
a185ef2
to
fdd7ab4
Compare
- replaces the SELECT press changing unison count to unison stereo spread: does the same thing, but works by pressing the same shortcut again. - the same mechanism should be usable as-is for eg. providing fast access to new arp parameters, and has been tested to work with horizontal menus as well. (no combined horizontal and layered menus are part of this PR, cominng after) - LayeredShortcut is a MenuItem class that encapsulates other menu items, switching between them via SoundEditor calling MenuItem::nextLayer(). - Moved some Submenu methods to MenuItem, so that we can put both Submenus and LayeredShortcuts in the parents tables. Some Submenu items made explicitly final. - SoundEditor navigation stack cleanup. - Removed const qualifiers from SoundEditor that were only getting cast away, making the code harder to follow. - Replaced NO_NAVIGATION with a proper tombstone object, so it can have methods called on it. - minor cleanup in sound_editor.cpp: we had `const MenuItem*` in a couple of places, where we then had to explicitly cast the constness away -- better not have it in the first place.
- pressing any of the envelope 1 or 2 segments while the same segment is already active opens the corresponding env 3 or 4 segment
fdd7ab4
to
33679ce
Compare
As, forgot to fix the blink... |
Need to add some docs for those extra envelopes! |
Missing bits in addition to the blink missing:
Additionally, the layering might be confusing on 7-seg. Maybe making it so that holding shift in menu shows the item name on 7-seg (or need to hold shift to see the value & edit?) That could be combined with allowing horiz menu - like access to neighbouring params when the name is shown? @m-m-adams and other 7-seg users? |
replaces the SELECT press changing unison count to unison stereo spread: does the same thing, but works by pressing the same shortcut again.
the same mechanism should be usable as-is for eg. providing fast access to new arp parameters.
the second commit adds envelopes 3 & 4 using this mechanism. these commits are best reviewed separately