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.
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>