Last active
September 21, 2021 19:37
-
-
Save andr-ew/d739c24f61a94b69d13271c933f97159 to your computer and use it in GitHub Desktop.
nest_ wrap example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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