Hello,
stupid question,
but I’m looking for a bug in the script where I wrote my debugging prints.
Of course, I have a lot of notifiers in my gui.
Until now I thought that the code was triggered after every change in value
but these prints convinced me that this is probably not the case.
The function is performed only if it is different from the previous one.
Is that right ?
> vb:popup{
> midi_mapping="MX:OP1_selector",
> id="op1",
> width=70,
> items=OPERATIONS,
> value=tmp.OP1,
> notifier=function(value)
> tmp.OP1=tonumber(value)
> print("OP1 changed to " .. tostring(OPERATIONS[value]))
> redraw_sample()
> end
> },
If the value was 5 before and I enter 5 again, the function will not be executed, if I enter 6 then yes.