After tweaking the radioGroup issue (https://forum-next.cabbageaudio.com/t/radiogroup-chnset-one-button-on-doesnt-turn-other-buttons-off/1863/18), a new Cabbage plague seems to poke out. The example below is again out of context, but this worked before and I made good use of it ![]()
See what happens in 2.7.13 if you press the āloadā button more than ones. Even after stopping Cabbage, the GUI part remains stack in some kind of a neurotic state.
form caption("test ButtonsLoop") size(330, 290) pluginId("tbl1") colour(0, 0, 0) guiMode("queue")
button bounds(10, 74, 34, 14) channel("IO_SavePar1") text("S 1", "S 1") corners(3) colour:0(200, 80, 0, 180) colour:1(255, 255, 0, 255) fontColour:0(255, 255, 0, 255) fontColour:1(160, 0, 0, 255)
button bounds(48, 74, 34, 14) channel("IO_SavePar2") text("S 2", "S 2") corners(3) colour:0(200, 80, 0, 180) colour:1(255, 255, 0, 255) fontColour:0(255, 255, 0, 255) fontColour:1(160, 0, 0, 255)
button bounds(86, 74, 34, 14) channel("IO_SavePar3") text("S 3", "S 3") corners(3) colour:0(200, 80, 0, 180) colour:1(255, 255, 0, 255) fontColour:0(255, 255, 0, 255) fontColour:1(160, 0, 0, 255)
button bounds(124, 74, 34, 14) channel("IO_SavePar4") text("S 4", "S 4") corners(3) colour:0(200, 80, 0, 180) colour:1(255, 255, 0, 255) fontColour:0(255, 255, 0, 255) fontColour:1(160, 0, 0, 255)
button bounds(162, 74, 34, 14) channel("IO_SavePar5") text("S 5", "S 5") corners(3) colour:0(200, 80, 0, 180) colour:1(255, 255, 0, 255) fontColour:0(255, 255, 0, 255) fontColour:1(160, 0, 0, 255)
button bounds(200, 74, 34, 14) channel("IO_SavePar6") text("S 6", "S 6") corners(3) colour:0(200, 80, 0, 180) colour:1(255, 255, 0, 255) fontColour:0(255, 255, 0, 255) fontColour:1(160, 0, 0, 255)
button bounds(238, 74, 34, 14) channel("IO_SavePar7") text("S 7", "S 7") corners(3) colour:0(200, 80, 0, 180) colour:1(255, 255, 0, 255) fontColour:0(255, 255, 0, 255) fontColour:1(160, 0, 0, 255)
button bounds(276, 74, 34, 14) channel("IO_SavePar8") text("S 8", "S 8") corners(3) colour:0(200, 80, 0, 180) colour:1(255, 255, 0, 255) fontColour:0(255, 255, 0, 255) fontColour:1(160, 0, 0, 255)
button bounds(10, 92, 34, 14) channel("IO_SavePar9") text("S 9", "S 9") corners(3) colour:0(200, 80, 0, 180) colour:1(255, 255, 0, 255) fontColour:0(255, 255, 0, 255) fontColour:1(160, 0, 0, 255)
button bounds(48, 92, 34, 14) channel("IO_SavePar10") text("S 10", "S 10") corners(3) colour:0(200, 80, 0, 180) colour:1(255, 255, 0, 255) fontColour:0(255, 255, 0, 255) fontColour:1(160, 0, 0, 255)
button bounds(86, 92, 34, 14) channel("IO_SavePar11") text("S 11", "S 11") corners(3) colour:0(200, 80, 0, 180) colour:1(255, 255, 0, 255) fontColour:0(255, 255, 0, 255) fontColour:1(160, 0, 0, 255)
button bounds(124, 92, 34, 14) channel("IO_SavePar12") text("S 12", "S 12") corners(3) colour:0(200, 80, 0, 180) colour:1(255, 255, 0, 255) fontColour:0(255, 255, 0, 255) fontColour:1(160, 0, 0, 255)
button bounds(162, 92, 34, 14) channel("IO_SavePar13") text("S 13", "S 13") corners(3) colour:0(200, 80, 0, 180) colour:1(255, 255, 0, 255) fontColour:0(255, 255, 0, 255) fontColour:1(160, 0, 0, 255)
button bounds(200, 92, 34, 14) channel("IO_SavePar14") text("S 14", "S 14") corners(3) colour:0(200, 80, 0, 180) colour:1(255, 255, 0, 255) fontColour:0(255, 255, 0, 255) fontColour:1(160, 0, 0, 255)
button bounds(238, 92, 34, 14) channel("IO_SavePar15") text("S 15", "S 15") corners(3) colour:0(200, 80, 0, 180) colour:1(255, 255, 0, 255) fontColour:0(255, 255, 0, 255) fontColour:1(160, 0, 0, 255)
button bounds(276, 92, 34, 14) channel("IO_SavePar16") text("S 16", "S 16") corners(3) colour:0(200, 80, 0, 180) colour:1(255, 255, 0, 255) fontColour:0(255, 255, 0, 255) fontColour:1(160, 0, 0, 255)
button bounds(10, 128, 70, 14) channel("IO_Load") text("LOAD", "LOAD") automatable(0) corners(3) latched(0) colour:0(255, 255, 0, 80) colour:1(255, 255, 0, 255) fontColour:0(255, 255, 0, 255) fontColour:1(160, 0, 0, 255)
</Cabbage>
<CsoundSynthesizer>
<CsOptions>
-n -d -m0d -+rtmidi=NULL
</CsOptions>
<CsInstruments>
ksmps = 16
nchnls = 2
0dbfs = 1
instr 1
if trigger(cabbageGetValue:k("IO_Load"), .5, 0) == 1 then
kind = 0
until kind == 16 do
cabbageSetValue sprintfk("IO_SavePar%d", kind+1), k(0)
kind += 1
od
kind = 0
until kind == 16 do
if kind>7 then
cabbageSetValue sprintfk("IO_SavePar%d", kind+1), k(1)
endif
kind +=1
od
endif
endin
</CsInstruments>
<CsScore>
f0 z
i 1 0 [3600*24*7]
</CsScore>
</CsoundSynthesizer>

