monome / norns

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

commands are not passed on initialization #160

Closed antonhornquist closed 6 years ago

antonhornquist commented 6 years ago

i'm getting bad argument #1: to 'pairs' (table expected, got nil) from matron when running template.lua, also with my own little test script+engine based on template.lua. are commands supposed to be passed on initialization? that is, should this be fixed in scripts (template.lua, any else using commands in init) or in norns lua init code?

antonhornquist commented 6 years ago

as of commit https://github.com/catfact/norns/commit/729f796c4abbef0fff3c0a41a3398eb7a28c323f engine.lua no longer passes commands to init function.

i assume this is deliberate (@catfact ?) so i'll create a pr for changing init = function(commands, count) to init = function() in scripts.