When I use pattern_time in a script on my norns to record button press on my grid, and then try to play them back, the first time I play the pattern back, I get this error in maiden:
.//home/we/norns/lua/lib/pattern_time.lua:111: attempt to perform arithmetic on a nil value (field '?')
stack traceback:
.//home/we/norns/lua/lib/pattern_time.lua:111: in function '/home/we/norns/lua/lib/pattern_time.next_event'
.//home/we/norns/lua/lib/pattern_time.lua:20: in field 'event'
/home/we/norns/lua/core/metro.lua:169: in function </home/we/norns/lua/core/metro.lua:166>
Does anyone have an idea what I’m doing wrong?
I just do something like
pattern:start()
After I record the pattern with pattern:rec_start().
I have used pattern_time before, with no problems, but I can’t see what I’m doing wrong now to give me this error.