# What happened to CHNSET\_GESTURES?

**URL:** <https://forum.cabbageaudio.com/t/what-happened-to-chnset-gestures/2743>\
**Category:** Cabbage Stew\
**Created:** [31 July 2021 18:37 UTC](https://forum.cabbageaudio.com/t/what-happened-to-chnset-gestures/2743 "2021-07-31T18:37:42Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [31 July 2021 18:37 UTC](https://forum.cabbageaudio.com/t/what-happened-to-chnset-gestures/2743/1 "2021-07-31T18:37:43Z")

</div>

The reserved channel CHNSET\_GESTURES doesn’t seem to function any-more (v2.7.13)? Also there is no documentation for it? Could we still have it? 😟

Memo: By default we cannot playback automation and this was supposed to enable either recording or playing back automation in a DAW.

> [@Plugin feedback DAW automation](https://forum.cabbageaudio.com/t/plugin-feedback-daw-automation/2012/26):
>
> Hi!
> 
> I just wanted to mention that apart from the particularities of my setup, the feedback issue is illustrated also by other Cabbage plugins, as described [recently](https://forum-next.cabbageaudio.com/t/midi-controllable-custom-presets-csound-to-daw-feedback/2341). Rory introduced the reserved channel `CHNSET_GESTURES` to resolve this.
> 
> Now we can either have DAW automation playback working while internal parameter changes (by `chnset` ) are not broadcast to the host (default, `chnset 0, "CHNSET_GESTURES"` ) or we can broadcast changes, e.g. triggered by a preset change, but no automation playback enabled ( `chnset 1, "CHNSET_GESTURES"` ). Perhaps one could refer to the two states as the automation playback and record/performance modes. For me, this works fine since I don’t need playback and record/performance modes simultaneously. I’d refer you to this Rory’s example: [AutoTest.csd](https://forum-next.cabbageaudio.com/uploads/short-url/fpCaJ60EKD93kDUXwyGlmv6WlvD.csd) (889 Bytes)
> 
> I have some issues with AUs (which might be particular to my setup) but it works perfectly with VSTs.

This is my current testing code:

```
<Cabbage>
form caption("test automation") size(300, 200), colour(58, 110, 182), pluginId("taf5") guiMode("queue")

rslider bounds(2, 22, 120, 120) range(0.5, 10000, 220, 0.25, 0.001) channel("OscFrq") popupText("0") colour(0, 255, 0, 255) trackerColour(255, 0, 0, 255)

button bounds(126, 20, 65, 65) latched(0) channel("OscFrqMultiplier2") text("x2","x2") value(0) corners(3) colour:0(255, 0, 0, 255) colour:1(255, 255, 0, 255) fontColour:0(0, 0, 0, 255) fontColour:1(160, 0, 0, 255)
button bounds(126, 88, 65, 65) latched(0) channel("OscFrqMultiplier05") text("/2","/2") value(0) corners(3) colour:0(0, 255, 0, 255) colour:1(255, 255, 0, 255) fontColour:0(0, 0, 0, 255) fontColour:1(160, 0, 0, 255)

checkbox bounds(10, 162, 20, 20), channel("mapping_enabled"), corners(2) value(1) colour:0(255, 255, 0, 100) colour:1(255, 255, 0, 255) automatable(0) colour:0(255, 255, 0, 100) colour:1(255, 255, 0, 255) automatable(0)
label bounds(36, 162, 200, 20) text("PLAY AUTOMATION") fontColour(255, 255, 0, 150) channel("label12")

</Cabbage>
<CsoundSynthesizer>
<CsOptions>
-n -d -+rtmidi=NULL -M0 -m0d 
</CsOptions>
<CsInstruments>
ksmps = 32
nchnls = 2
0dbfs = 1

instr 1

if trigger(cabbageGetValue("mapping_enabled"),.5,0) == 1 then
chnset k(1), "CHNSET_GESTURES"
elseif trigger(cabbageGetValue("mapping_enabled"),.5,1) == 1 then
chnset k(0), "CHNSET_GESTURES"
endif

kOscFrq cabbageGetValue "OscFrq"

if (trigger(cabbageGetValue:k("OscFrqMultiplier2"), .5, 0) == 1) then; 0->1
    kOscFrq *= 2
    cabbageSetValue "OscFrq", kOscFrq
endif
    
if (trigger(cabbageGetValue:k("OscFrqMultiplier05"), .5, 0) == 1) then; 0->1
   kOscFrq *= 0.5
   cabbageSetValue "OscFrq", kOscFrq
endif   

endin

</CsInstruments>
<CsScore>
f0 z
i 1 0 -1
</CsScore>
</CsoundSynthesizer>

```

---

<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:** [1 August 2021 08:25 UTC](https://forum.cabbageaudio.com/t/what-happened-to-chnset-gestures/2743/2 "2021-08-01T08:25:40Z")

</div>

This was “a bit” stupid/embarrassing comment/report from me. I realized now (or at least it seems) that all works fine if I don’t use at all the reserved channel. So, automation is recorded, played back, internal states are broadcast to DAW and MIDI controllers. However, using CHNSET\_GESTURES seem to mess up things. Maybe you could still comment on this and if suitable clean up the reserved channel. Sorry for the falls alarm! …or? I am never sure… 🤐

---

<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:** [2 August 2021 10:28 UTC](https://forum.cabbageaudio.com/t/what-happened-to-chnset-gestures/2743/3 "2021-08-02T10:28:34Z")

</div>

> [@Samo](#):
>
> CHNSET\_GESTURES seem to mess up things

That’s why they are not documented. They were added to fix a very specific issue a user was having. The more we worked on it the more we came to the conclusion things were in fact working as they should without them, and it was more likely another problem with hardware. So basically, these are not for public use at all. I just saw your last post about the automation, which I guess is what brought you to these channels. 🤔 We can take up that discussion in the other thread.

---

<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:** [2 August 2021 12:45 UTC](https://forum.cabbageaudio.com/t/what-happened-to-chnset-gestures/2743/4 "2021-08-02T12:45:54Z")

</div>

> [@rorywalsh](#):
>
> I guess is what brought you to these channels

No that was after 🙂 And I think the user you’re referring to was me 🙂  
I think this started for me by realizing that the chnset did not broadcast to DAW and thus not send feedback to MIDI controllers capable of changing their state from DAW. Then the problem was a feedback loop braking automation. Then came the reserved channel and then …I lost track of details… But maybe it could work now except for the new issue posted here: [https://forum-next.cabbageaudio.com/t/slider-jumping-when-recording-automation/2749](https://forum-next.cabbageaudio.com/t/slider-jumping-when-recording-automation/2749)
