PMAP autosave + 16 MIDI vports #1268
Conversation
- 16 assignable midi vports (addresses #1260 ) - extended DEVICES > MIDI menu to reflect all 16 ports - added "last position" recall when switching between ports and devices - extended mapping menu to use all 16 ports - extended PMAP to 16 ports - assigned PMAP saves to more appropriate triggers (after coming out of mapping) - fixed #1261
|
rad! will check it out. |
|
this is great! some minor inline comments to address but tested it out, nice attention to detail. one big change i'd like you to tackle first, however, is you introduce a new scrolling/paging style for the device midi menu. i'd much prefer you make it conform the the existing style which is followed by the SELECT and PARAM lists: basically six lines displayed, highlight on line 3. for device/midi the minor mod to this would be MIDI on line 1, line 2 blank, then have lines 3-6 scrolling while keeping line 3 the highlight. awesome work! |
- changed DEVICES > MIDI menu + sub-menu mechanics to align with SELECT and PARAMS - touched up code readability from PR feedback
|
@tehn + @ryanlaws , thank you for the detailed feedback! i've aligned the nav mechanics of the DEVICES > MIDI device menu + submenu with the scrolling template of SELECT + PARAMETERS. i also touched up some of the legibility, as highlighted by your q's and comments. lmk if this feels good and tests well! |
|
code looks good, will test on device this afternoon! |
| @@ -24,6 +24,7 @@ m.key = function(n,z) | |||
| else | |||
| norns.script.clear() | |||
| _norns.free_engine() | |||
| params.reset() | |||
tehn
Dec 28, 2020
Member
little late--- this throws an error, and i'm wondering what the original intention was?
little late--- this throws an error, and i'm wondering what the original intention was?
|
mmm. dang. it was to avoid a screen redraw issue after clearing the script
and returning to parameters (maybe to adjust the clock or fine-tune a
global param in between script loads).
i can take a peek later this week, sorry for the trouble!
…On Mon, Dec 28, 2020 at 5:56 PM brian crabtree ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In lua/core/menu/home.lua
<#1268 (comment)>:
> @@ -24,6 +24,7 @@ m.key = function(n,z)
else
norns.script.clear()
_norns.free_engine()
+ params.reset()
little late--- this throws an error, and i'm wondering what the original
intention was?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1268 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF5L2HCGC6C3ZWJ6IFMWW5LSXELLPANCNFSM4UVSCGOA>
.
|
|
ah i remember now! this is an easy fix i think. i'll get it |
PMAP auto-save
params.lua
previous behavior:
new behavior:
16 MIDI vports
previous behavior:
new behavior:
SYSTEM > DEVICES > MIDI:


assigned a connected device to a vport (up to 4 pages can generate, no indicator if only 1 page):

midi.lua
pmap.lua
state.lua
devices.lua
m.last_posto remember which port was last highlighted when switching back to port list from device listclock.lua
nb. of course, names are refreshed only at boot, but i think this is helpful regardless. if a device's name is none, it just shows the port number.
show mapped device's name
params.lua
previous behavior: mapping a midi controller to a parameter showed only its port number
new behavior: midi map menu now shows the device's name (abbreviated if longer than 6 characters, eg. "Midi Fighter Twister" becomes "MFT"), which helps with clarity
fix #1261
home.lua
add util.acronym()
util.lua
eg.
util.acronym("Midi Fighter Twister")returnsMFT