Cabbage Logo
Back to Cabbage Site

Conditional Statements In <Cabbage> Section

Hi there Cabbage community, I’m new to both Cabbage and this forum!

I want to start by saying great work on Cabbage Rory, after only a few hours with it I’m doing some pretty decent things already! I tried making my own pluggin with c++, SDL and csound before, and it was long. This is much easier :smiley:

Anyways, my question… I am wondering if it is possible to use conditional statements in the Cabbage segment of my .csd? For instance, if I have a combo box, can I use if statements to show a different selection of widgets depending on which item from the combo box is chosen? Or would I need to implement this in csound?

Cheers in advance for your help!

Pete

The Cabbage section is very much static. If you need to dynamically organise and show widgets you should do so using Csound and identifier channels. Take a look at: http://cabbageaudio.com/docs/identchannels/
Let me know if you have any issues getting the hang of it. The identchannel() identifier really opens up a lot of possibilities when it comes to designing GUIs.

Cheers very much, that should do it!