Cabbage Logo
Back to Cabbage Site

Identchannel not working for me

Hi Rory,

Maybe I’m missing some obvious syntax here… but shouldn’t this move the knob to x=0, y=0?

<Cabbage>
form caption("Untitled") size(400, 300), colour(58, 110, 182), pluginid("def1")
rslider bounds(8, 158, 381, 95), identchannel("chanIdent")
</Cabbage>
<CsoundSynthesizer>
<CsOptions>
-n -d -+rtmidi=NULL -M0 -m0d --midi-key-cps=4 --midi-velocity-amp=5
</CsOptions>
<CsInstruments>
; Initialize the global variables. 
ksmps = 32
nchnls = 2
0dbfs = 1

;instrument will be triggered by keyboard widget
instr 1
kEnv madsr .1, .2, .6, .4
aOut vco2 p5, p4
outs aOut*kEnv, aOut*kEnv

chnset "bounds(0,0,381,95)", "chanIdent"

endin


</CsInstruments>
<CsScore>
;causes Csound to run for about 7000 years...
f0 z
</CsScore>
</CsoundSynthesizer>

Works for me. You’ll need to send a MIDI event to trigger the movement though as you have no events in your score section. Or just just add i1 0 z

p.s. the formatting police edited your post so the code shows more clearly. They are relentless :grin:

i think this simple example is my exactly problem with all the actions related with the chnset op code. This example doesnt work for me neither

Did you read my last comment, to your original thread? Here’s the thing, we have the same version of Windows, the same version of Csound, the same version of Cabbage. If it works ok for me it should work fine for you. The reason it’s not working is most likely due to the fact that you haven’t selected a valid audio decide. Would you mind sharing a screenshot of your settings?