Csound Csound-dev Csound-tekno Search About

Re: [Csnd] SetChannel value not received by CSound?

Date2020-11-29 14:31
FromJarrad Hope
SubjectRe: [Csnd] SetChannel value not received by CSound?
I solved this by the using the channel pointer

MYFLT *chan_param1;
csound->GetChannelPtr(chan_param1, "param1", CSOUND_CONTROL_CHANNEL | CSOUND_INPUT_CHANNEL);
*chan_param1 = (MYFLT)0.5;

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2020-11-29 19:46
FromRory Walsh
SubjectRe: [Csnd] SetChannel value not received by CSound?
Can you post your full C++ code? The SetChannel() method just wraps the GetChannelPtr() function, so if it works, so should the other. 

On Sun, 29 Nov 2020 at 14:32, Jarrad Hope <me@jarradhope.com> wrote:
I solved this by the using the channel pointer

MYFLT *chan_param1;
csound->GetChannelPtr(chan_param1, "param1", CSOUND_CONTROL_CHANNEL | CSOUND_INPUT_CHANNEL);
*chan_param1 = (MYFLT)0.5;

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here