Hello,
I am programing a small synth and want to modify the GUI during runtime. I have a global array (length 64, so handling each slot manually would be very annoying) and want to loop through the array and create images on the GUI based on the content of each index. The content of the array changes over time, so I need to be able to trigger a new rendering pass.
My first instinct was to use the cabbageCreate opcode. But it can’t add new widgets during performance (only at time 0 of the score, not time 0 of the allocation of the instrument that performs the rendering pass). It also does not seem to be able to create any images at all (even at time 0).
Then I tried using buttons with imgFile()
, but I was not able to show the image instead of the button (I think I am misunderstanding how imgFile()
is supposed to be used, it is hard to tell from the documentation what it does, since the image files used aren’t shown, so I am not sure to what extent imgFile()
can replace the visuals of a button and which arguments are needed).
Can anyone give me any hints how to solve my problem?