Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TAPE record mode breaks norns encoder callback #831

Closed
lazzarello opened this issue Jun 2, 2019 · 1 comment
Closed

TAPE record mode breaks norns encoder callback #831

lazzarello opened this issue Jun 2, 2019 · 1 comment

Comments

@lazzarello
Copy link
Contributor

@lazzarello lazzarello commented Jun 2, 2019

Initial bug was posted in the norns development thread on lines. The FM7 script [defines a callback for the norns encoders]. When the script is loaded, the encoder callback works as expected, in this instance modifying a floating point number for an engine parameter. When I begin recording with TAPE, the encoder callback breaks and Lua throws the following exception.

stack traceback:
/home/we/norns/lua/core/encoders.lua:57: in function 'core/encoders.process'
lua: /home/we/norns/lua/core/encoders.lua:57: attempt to call a number value (field 'callback')

From the output, it seems that the callback field in the encoders module no longer contains a function after enabling recording, rather it contains a number. I'd imagine getting some kind of debugging environment to inspect the table before and after starting to record could be helpful. Not sure how to do that outside of the REPL.

@tehn
Copy link
Member

@tehn tehn commented Jun 24, 2019

failed to replicate.

could you pull master, recompile, and see if you can replicate this?

@tehn tehn closed this Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants