robbielyman / seamstress

seamstress is an art engine
GNU General Public License v3.0
129 stars 12 forks source link

add all non-graphic, non norns-weaver dependant libs #30

Closed p3r7 closed 1 year ago

p3r7 commented 1 year ago

added all the generic libs from norns/lua/lib, except:

all 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:

also added the include fn as an alias to require in the config.lua as its omnipresent in norns' script (in place of require) 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 from Util / Tab to util / 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.

robbielyman commented 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!