monome / norns

norns is many sound instruments.
http://monome.org
GNU General Public License v3.0
630 stars 145 forks source link

save and restore system settings when moving between menu and script #414

Closed pq closed 4 years ago

pq commented 6 years ago

encoder, key and screen settings should be saved and restored between switches.

specifically, this will

forward pointers:

menu.init() asserts encoder settings here:

https://github.com/monome/norns/blob/90b16dfa3a4d2114e448a4fb4558f1b8687680dd/lua/menu.lua#L291-L292

which is called after script init here:

https://github.com/monome/norns/blob/90b16dfa3a4d2114e448a4fb4558f1b8687680dd/lua/script.lua#L42-L43

see also: #345 (for the plumbing to manage screen state).

/cc @tehn @artfwo

tehn commented 5 years ago

screen attribute saving works now.

must get the encoder states to restore properly now