I’d like to add some code to ZynZilla to allow it to pass keypresses through, so that every gui update doesn’t require a click on the waveform to hear the result. I imagine this is fairly simple to do, I just haven’t a clue how to do it.
Rats of NIMH! Sorry about that. That’s most likely my fault.
In gui.lua I added a key_handler function and then passed it to show_custom_dialog:
-- Key handler simply returns any key presses back to Renoise
local function key_handler(dialog, key)
return key
end
-- `key_handler` added to the tool's main dialog
dialog = renoise.app():show_custom_dialog (
"ZynZilla",
dialog_content,
key_handler
)
end
Are both of these snippets of code inserted into the gui.lua file? Or is the key handler section added to main.lua?
If so, does it matter where? line numbers helpful/appreciated!
Oh sorry about that. I figured since you asked for the code that was modified, that a snippet of what was done would be sufficient.
Anyway, I fixed the tool so it now installs. I’m still not super familiar with the creation process and I missed a step that messed everything up. Here it is again.
PS: I did base the change off of the “fixed” version.
Out of curiosity and being a newbie to the tools ecosystem, since this tool doesn’t seem to be officially maintained anymore, what would be the appropriate way for other devs to share ongoing development?
If you’re feeling ambitious and want to clean up a little bug - at least I think it’s a bug - when the user selects “wave” as the wave shape, zynzilla throws this error message:
not a big deal, but it would be an improvement to have it cleaned up… IF you’re feeling ambitious.
Thanks again for the huge usability improvement here!!!