# Cabbage 2.9 vs 2.8 initializing software

**URL:** <https://forum.cabbageaudio.com/t/cabbage-2-9-vs-2-8-initializing-software/3960>\
**Category:** Cabbage Stew\
**Created:** [16 November 2023 15:25 UTC](https://forum.cabbageaudio.com/t/cabbage-2-9-vs-2-8-initializing-software/3960 "2023-11-16T15:25:38Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Man\_in\_the\_gutter](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/man_in_the_gutter/32/4202_2.png) [@Man\_in\_the\_gutter](https://forum.cabbageaudio.com/u/Man_in_the_gutter)\
**Post date:** [16 November 2023 15:25 UTC](https://forum.cabbageaudio.com/t/cabbage-2-9-vs-2-8-initializing-software/3960/1 "2023-11-16T15:25:38Z")

</div>

I decided to go to latest version of cabbage to test my latest work.  
My program looks like a mess in 2.9.  
One of the issues is comboboxes not set on an option.  
I looked to isolate this specific issue and it seems to persist in the attachment.  
[a.csd](https://forum.cabbageaudio.com/uploads/short-url/iZnUSDdmCjJV3XbQYGw3NVKbWHM.csd) (756 Bytes)

---

<div class="post-metadata">

**Author:** ![Samo](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/s/71c47a/32.png) [@Samo](https://forum.cabbageaudio.com/u/Samo)\
**Post date:** [16 November 2023 17:30 UTC](https://forum.cabbageaudio.com/t/cabbage-2-9-vs-2-8-initializing-software/3960/2 "2023-11-16T17:30:02Z")

</div>

I’m also transitioning and this might be related to my recent posts:  
[https://forum-next.cabbageaudio.com/t/cabbageset-combobox/3953](https://forum-next.cabbageaudio.com/t/cabbageset-combobox/3953)  
and  
[https://forum-next.cabbageaudio.com/t/cabbagegetvalue-init-behaviour-changed/3944/4](https://forum-next.cabbageaudio.com/t/cabbagegetvalue-init-behaviour-changed/3944/4)

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [20 November 2023 09:46 UTC](https://forum.cabbageaudio.com/t/cabbage-2-9-vs-2-8-initializing-software/3960/3 "2023-11-20T09:46:55Z")

</div>

Hi @Man_in_the_gutter, apologies for the delay in replying to this. If you want the combobox to show an initial value, use the `value()` identifier:

`combobox bounds(5,5,80,20) channel("pickup-selector"), items("Neck", "Bridge", "Both", "None"), value(1)`

If you want the combobox to send string data to Csound rather than a number, you would need to set it up toe use a string channel type. And you would then pass the string to value instead of a numerical index:

combobox bounds(5,5,80,20) channel(“pickup-selector”), channelType(“string”) items(“Neck”, “Bridge”, “Both”, “None”), value(“Neck”)

I’m sure there will be a few more bumps along the road as you move from version 2.8 to 2.9, don’t be afraid to ask 🙂

---

<div class="post-metadata">

**Author:** ![Man\_in\_the\_gutter](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/man_in_the_gutter/32/4202_2.png) [@Man\_in\_the\_gutter](https://forum.cabbageaudio.com/u/Man_in_the_gutter)\
**Post date:** [20 November 2023 10:26 UTC](https://forum.cabbageaudio.com/t/cabbage-2-9-vs-2-8-initializing-software/3960/4 "2023-11-20T10:26:27Z")

</div>

Ok, thanks.

Channeltype as a number is not a problem.

Still looking to solve the loops.  
The loop iteration works fine, but it doesn’t execute the ‘cabbageSet’ inside the loop.  
Like the same I said before, almost as if the loop is not long enough.  
Although it should only iterate after executing the ‘cabbageSet’.

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [20 November 2023 10:29 UTC](https://forum.cabbageaudio.com/t/cabbage-2-9-vs-2-8-initializing-software/3960/5 "2023-11-20T10:29:16Z")

</div>

Can you share a simple example so I can take a look?

---

<div class="post-metadata">

**Author:** ![Man\_in\_the\_gutter](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/man_in_the_gutter/32/4202_2.png) [@Man\_in\_the\_gutter](https://forum.cabbageaudio.com/u/Man_in_the_gutter)\
**Post date:** [21 November 2023 10:05 UTC](https://forum.cabbageaudio.com/t/cabbage-2-9-vs-2-8-initializing-software/3960/6 "2023-11-21T10:05:38Z")

</div>

[loop execute.csd](https://forum.cabbageaudio.com/uploads/short-url/9M3r1DqEH74lyCLcVXOHmXdQUa6.csd) (2.7 KB)

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [21 November 2023 10:27 UTC](https://forum.cabbageaudio.com/t/cabbage-2-9-vs-2-8-initializing-software/3960/7 "2023-11-21T10:27:44Z")

</div>

There are two issues here. One in your code, and one in Cabbage. The first issue is you’re using an i-rate version of `cabbageSet` in a k-rate loop. That will never work. The next issue is that I recently added some optimisations to the string variants of the cabbage opcodes. This has caused code like this to stop working, which was not my intention. So I will roll back 👍

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [21 November 2023 10:51 UTC](https://forum.cabbageaudio.com/t/cabbage-2-9-vs-2-8-initializing-software/3960/8 "2023-11-21T10:51:34Z")

</div>

I just pushed through this fix now. If you grab the latest build when it is done you should be good to go. FWIW, this code now works fine (note the k-rate version of `cabbgeSet`):

```
kr99 init 1
Sr = "R"
Sc = "C"
Sformat = "%d"
kc99 init 1

while kc99 < 24 do
  ScurrentButtonFB strcatk Sr, Sformat
  ScurrentButtonFB2 sprintfk ScurrentButtonFB, kr99
  ScurrentButtonFB2 strcatk ScurrentButtonFB2, Sc
  ScurrentButtonFB2 strcatk ScurrentButtonFB2, Sformat
  ScurrentButtonFB sprintfk ScurrentButtonFB2, kc99
  cabbageSet changed:k(kc99), ScurrentButtonFB, "bounds",(kc99-1)*15, (kc99-1)*10, 15, 10
  kc99 += 1
od
```

---

<div class="post-metadata">

**Author:** ![Man\_in\_the\_gutter](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/man_in_the_gutter/32/4202_2.png) [@Man\_in\_the\_gutter](https://forum.cabbageaudio.com/u/Man_in_the_gutter)\
**Post date:** [21 November 2023 11:15 UTC](https://forum.cabbageaudio.com/t/cabbage-2-9-vs-2-8-initializing-software/3960/9 "2023-11-21T11:15:16Z")

</div>

I see, there was a general trigger originally in the cabbageSet, that I changed to 1 and then removed in the process.

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [21 November 2023 11:18 UTC](https://forum.cabbageaudio.com/t/cabbage-2-9-vs-2-8-initializing-software/3960/10 "2023-11-21T11:18:46Z")

</div>

Yeah, I’ve one the same myself on plenty of occasions 🤯

---

<div class="post-metadata">

**Author:** ![Man\_in\_the\_gutter](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/man_in_the_gutter/32/4202_2.png) [@Man\_in\_the\_gutter](https://forum.cabbageaudio.com/u/Man_in_the_gutter)\
**Post date:** [21 November 2023 13:21 UTC](https://forum.cabbageaudio.com/t/cabbage-2-9-vs-2-8-initializing-software/3960/11 "2023-11-21T13:21:20Z")

</div>

Yes,  
It works on the latest release! 👍
