Reply To: Radio button in a modulator group needs a default setting

Home Forums General Programming Radio button in a modulator group needs a default setting Reply To: Radio button in a modulator group needs a default setting

#118993
dnaldoog
Participant
  • Topics: 4
  • Replies: 480
  • Total: 484
  • ★★

Hi Damien,

You were right about clicking twice on the button. I could have sworn I had fixed that!

Anyway, your code works beautifully.

The only problem now could be updating the radio button array from incoming MIDI, because source==4 will block that too. source==5 will allow lua code to run, but then you would run into problems with the lua creating infinite loops. This source parameter was a recent discovery for me.

Anyway I am re-posting another panel with your code for other people to look at in the future who might come across this problem.

button array panel

———————————————————
–[[
github.com/RomanKubiak/ctrlr/blob/de28dc3ad3591a5832f1e38ce8adabc9369b1011/Source/Lua/CtrlrLuaModulator.cpp
value(“initialValue”, 0),
value(“changedByHost”, 1),
value(“changedByMidiIn”, 2),
value(“changedByMidiController”, 3),
value(“changedByGUI”, 4),
value(“changedByLua”, 5),
value(“changedByProgram”, 6),
value(“changedByLink”, 7),
value(“changeByUnknown”, 8)
–]]

… so far I have only been seen values 4 or 5,6 generated

  • This reply was modified 6 months, 2 weeks ago by dnaldoog.
Attachments:
You must be logged in to view attached files.
Do NOT follow this link or you will be banned from the site!