# Trouble updating widgets (resolved)

**URL:** <https://forum.cabbageaudio.com/t/trouble-updating-widgets-resolved/514>\
**Category:** Cabbage slugs\
**Created:** [7 May 2017 18:10 UTC](https://forum.cabbageaudio.com/t/trouble-updating-widgets-resolved/514 "2017-05-07T18:10:13Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![zappfinger](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/zappfinger/32/223_2.png) [@zappfinger](https://forum.cabbageaudio.com/u/zappfinger)\
**Post date:** [7 May 2017 18:10 UTC](https://forum.cabbageaudio.com/t/trouble-updating-widgets-resolved/514/1 "2017-05-07T18:10:14Z")

</div>

I am trying to update multiple properties of a slider widget via OSC. I have a function like :  
send(’/status/pot10’, ‘text(“bla”), channel(“test”), range(8.0, 30.0, 20.0)’)

The text gets updated allright, but the channel or range do not.  
Richard

---

<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:** [8 May 2017 10:17 UTC](https://forum.cabbageaudio.com/t/trouble-updating-widgets-resolved/514/2 "2017-05-08T10:17:44Z")

</div>

That should work. Can you try placing a \ before each ". When I send strings to Cabbage using chnset I usually do something like this:

`chnset "text(\"Hello\"), colour(\"red\")", "identChannel"`

---

<div class="post-metadata">

**Author:** ![zappfinger](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/zappfinger/32/223_2.png) [@zappfinger](https://forum.cabbageaudio.com/u/zappfinger)\
**Post date:** [8 May 2017 17:49 UTC](https://forum.cabbageaudio.com/t/trouble-updating-widgets-resolved/514/3 "2017-05-08T17:49:18Z")

</div>

I do that but it does not help. In the following code:

kbut0 chnget “but0” ; load all template names  
if kbut0 == 1 then  
OSCsend kbut0, $IPADDRESS,7710,"/command/get",“s”,“templates”  
chnset “text(“bla”), channel(“test”), range(8.0, 30.0, 20.0)”, “pot12id”  
endif

the text changes to “bla”, but the channel or range are not set

---

<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:** [8 May 2017 18:29 UTC](https://forum.cabbageaudio.com/t/trouble-updating-widgets-resolved/514/4 "2017-05-08T18:29:26Z")

</div>

Thanks, you’re right. I’ll look into it.

---

<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:** [8 May 2017 18:57 UTC](https://forum.cabbageaudio.com/t/trouble-updating-widgets-resolved/514/5 "2017-05-08T18:57:18Z")

</div>

But it works fine with Cabbage v2…so…I’m not so inclined to go back and fix problems present in Cabbage v1 that are not present in v2. Hope this is Ok.

---

<div class="post-metadata">

**Author:** ![zappfinger](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/zappfinger/32/223_2.png) [@zappfinger](https://forum.cabbageaudio.com/u/zappfinger)\
**Post date:** [8 May 2017 19:38 UTC](https://forum.cabbageaudio.com/t/trouble-updating-widgets-resolved/514/6 "2017-05-08T19:38:07Z")

</div>

I understand that. But with V2, my csd does not work anymore…weird. This one uses OSC to communicate with a OSCsound server as in my previous design drawing.  
Besides that, the third pot “pot12id” still only changes the text, not the channel or the range…

Here is the csd so far. You don’t need the OSCsound server to run. If you press on the ‘Get templ’ button the third pot in track 1 changes name, but nothing else..

[Tracks.csd](https://forum.cabbageaudio.com/uploads/default/original/1X/c9334672982a278ae827760403182e986cb71f04.csd) (6.3 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:** [8 May 2017 21:03 UTC](https://forum.cabbageaudio.com/t/trouble-updating-widgets-resolved/514/7 "2017-05-08T21:03:54Z")

</div>

Ah. Ok. `channe()` and `range()` can’t be set dynamically. Those identifiers are intrinsic to how the parameters work, and VST hosts need to know what they are when the instrument is first loaded. This is actually somewhat related to a recent post by Oeyvind about [dynamically creating widgets](http://forum.cabbageaudio.com/t/dynamic-plant-creation/515).

Changing these dynamically will cause unwanted and unexpected behaviour in a host. I know in this case you are not using a host, but I really think it’s important that instruments behave the same in standalone Cabbage as they do in a VST host. Do you know what I mean? It’s unfortunate, but I think it will only lead to confusion among users if things are different in one interface than another. Cabbage is a toolkit for generating plugins after all. Even the instruments loaded by Cabbage itself are treated as plugins.

---

<div class="post-metadata">

**Author:** ![zappfinger](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/zappfinger/32/223_2.png) [@zappfinger](https://forum.cabbageaudio.com/u/zappfinger)\
**Post date:** [9 May 2017 19:02 UTC](https://forum.cabbageaudio.com/t/trouble-updating-widgets-resolved/514/8 "2017-05-09T19:02:51Z")

</div>

I see. Understandable but a pity. Maybe I can start a whole Cabbage csd (a template for several instruments and effects in my case) when it is loaded from the database. Is there some command line option like : ‘cabbage template1.csd’ ?

---

<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:** [9 May 2017 19:24 UTC](https://forum.cabbageaudio.com/t/trouble-updating-widgets-resolved/514/9 "2017-05-09T19:24:34Z")

</div>

The old version of Cabbage would open csds from the command line. I can look into doing the same with Cabbage2 if that’s what you mean?

---

<div class="post-metadata">

**Author:** ![zappfinger](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/zappfinger/32/223_2.png) [@zappfinger](https://forum.cabbageaudio.com/u/zappfinger)\
**Post date:** [9 May 2017 19:28 UTC](https://forum.cabbageaudio.com/t/trouble-updating-widgets-resolved/514/10 "2017-05-09T19:28:57Z")

</div>

That would be really helpful indeed!

---

<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:** [9 May 2017 19:42 UTC](https://forum.cabbageaudio.com/t/trouble-updating-widgets-resolved/514/11 "2017-05-09T19:42:21Z")

</div>

I’ll add it to the list 😉

---

<div class="post-metadata">

**Author:** ![zappfinger](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/zappfinger/32/223_2.png) [@zappfinger](https://forum.cabbageaudio.com/u/zappfinger)\
**Post date:** [9 May 2017 19:48 UTC](https://forum.cabbageaudio.com/t/trouble-updating-widgets-resolved/514/12 "2017-05-09T19:48:20Z")

</div>

Doumo arigatou gozaimasu!

---

<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:** [9 May 2017 19:49 UTC](https://forum.cabbageaudio.com/t/trouble-updating-widgets-resolved/514/13 "2017-05-09T19:49:25Z")

</div>

> [@zappfinger](#):
>
> Doumo arigatou gozaimasu

I had to google that!

---

<div class="post-metadata">

**Author:** ![zappfinger](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/zappfinger/32/223_2.png) [@zappfinger](https://forum.cabbageaudio.com/u/zappfinger)\
**Post date:** [9 May 2017 19:54 UTC](https://forum.cabbageaudio.com/t/trouble-updating-widgets-resolved/514/14 "2017-05-09T19:54:22Z")

</div>

It comes in handy when you’re in Japan…

---

<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:** [9 May 2017 19:54 UTC](https://forum.cabbageaudio.com/t/trouble-updating-widgets-resolved/514/15 "2017-05-09T19:54:40Z")

</div>

I’ve no doubt!
