Luke Kolin Posted November 7, 2020 Report Share Posted November 7, 2020 I have a LUA function that listens for parameter changes using event.param(functionName). My understanding is that if I send the same parameter over and over again the function will not trigger, since the param value hasn't changed. Right now I'm setting the parameter to zero in my button release and treating a zero as a NOOP, but I'm curious whether the function itself can modify the parameter value. The documentation doesn't seem clear, or my brain is too small. 😄 Cheers!  Link to comment Share on other sites More sharing options...
spokes2112 Posted November 7, 2020 Report Share Posted November 7, 2020 Luke, It seems you would like one particular button to call a function w/ repeat. An option is to use event.flag(flag #, function name) in the lua, then in the button assignment, use LuaToggle <lua name> with a param of the flag#, repeat on. When passed to the function, the flag number gets sent too, perhaps can be used similar to the param being sent using event.param. I use flags / LuaToggle a lot when multiple user interfaces need to use the same function in some fashion - very handy. Roman Link to comment Share on other sites More sharing options...
Luke Kolin Posted November 8, 2020 Author Report Share Posted November 8, 2020 Ah, that sounds like what I need. Shouldn't be too difficult to retrofit. Thanks! Cheers Luke Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now