vcync / modV

modular audio visualisation powered by JavaScript
https://modv.vcync.gl
MIT License
449 stars 25 forks source link

Expressions don't work for toggling checkboxes #887

Open HorstBaerbel opened 1 year ago

HorstBaerbel commented 1 year ago

Operating system and application version

Describe the bug Trying to use a MIDI button to TOGGLE a checkbox. After learning the button, the button does change the checkbox, but it is momentary. I want a permanent toggle. I'm tried the Expressions "inputValue > 0 ? 0 : 1", "value > 0 ? (inputValue > 0 ? 0 : 1) : inputValue", "!inputValue" or "!!inputValue", but none of these seem to work.

EDIT: I've also tried using an expression to switch between two values of a control. The MIDI button does sort of: "value > 0 ? 0.5 : 1" and also this does not work for me in some cases. Maybe this is a problem with MIDI (buttons?) + Expressions?

To Reproduce Steps to reproduce the behavior: See above

Expected behavior One of the Expression should toggle the checkbox

Workaround The obvious workaround is setting your MIDI buttons to actual toggle buttons through a scene/patch editor, but you don't always have that possibility...