Skip to content

Instantly share code, notes, and snippets.

@andr-ew
Last active September 21, 2021 19:37
Show Gist options
  • Save andr-ew/d739c24f61a94b69d13271c933f97159 to your computer and use it in GitHub Desktop.
Save andr-ew/d739c24f61a94b69d13271c933f97159 to your computer and use it in GitHub Desktop.
nest_ wrap example
include 'nest_/lib/nest/core'
include 'nest_/lib/nest/norns'
include 'nest_/lib/nest/grid'
n = nest_ {
num = _grid.number {
x = { 2, 14 }, y = 2,
wrap = 5, --wrap to the next line after 5 keys
level = { 4, 15 },
action = function(s, v) print(v) end --v is still range 1 - 13
}
} :connect { g = grid.connect() }
n:init()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment