Closed p3r7 closed 1 year ago
I think I'm going to close this—things like the test suite don't belong at the moment. thank you for the spur to bring in more Lua though! I added the missing things from util
, lfo
,sequins
and lattice
. feel free to open another PR with others as you find yourself using them!
added all the generic libs from
norns/lua/lib
, except:graph
and its derivatives: they depend on stuff not yet implemented is seamstress' screen API.ui
,textentry
,fileselect
andlistselect
: all the UI stuff too tied to norns' screen & its limitationsall the rest should just work i guess. i'm not 100% sure about
lfo
, as it relies on the params API but i've included it nonetheless (should be easy to tweak to make it work).also, couldn't add those 2 fns:
util.trim_string_to_width
(depends on_norns.screen_text_extents
)util.time
(depends on_norns.get_time
)also added the
include
fn as an alias torequire
in theconfig.lua
as its omnipresent in norns' script (in place ofrequire
) and having this small alias makes porting norns scripts easier.also, please note that this switches back the name of the module table of
util
/tabutil
fromUtil
/Tab
toutil
/tab
. idk why you switched style initially. my understanding is that people tend to use an uppercase 1rst letter when the module defines a class and a lowercase for when it's all static fns.