Cabbage Logo
Back to Cabbage Site

Randomize button

I would like to know how to make a button to randomize the parameters of a synth or effect.

Hi @xas_abra, welcome to the forum!

The easiest way is to retrieve the channel names for each of the widgets, and then run through a loop to update them. You can get the channel names using the cabbageGetWidgetChannels opcode. You can also manage the list of channels yourself manually, whatever is easiest. Once you have the channels it’s a matter of calling cabbageSetValue with a random value for each one.

widgets.csd (3.8 KB)

1 Like

Hi, @rorywalsh

With your advice, I was able to successfully implement the randomize button!
Thank you from the bottom of my heart!
Thank you very much!

1 Like