Csound Csound-dev Csound-tekno Search About

[Csnd] ctcsound to invalue vs chnget

Date2018-08-11 16:34
FromRichard
Subject[Csnd] ctcsound to invalue vs chnget

I am trying the CsoundSession class by Francois Pinot, with the following added lines:

if __name__ == '__main__':
    cs = CsoundSession("/Users/richard/PycharmProjects/OSCall/csds/Mono_Synth.csd")
    while 1:
        cs.setControlChannel('att', float(1.5))
        cs.setControlChannel('rel', float(22.))
        cs.setControlChannel('pitchglide', float(1.5))
        time.sleep(1)
        print '.',

The csd comes from CsoundQt and it uses invalues. This works fine in CsoundQt.

But with my Python code it does not produce any sound. Also, I got warnings about invalue callback not set.
When I change the csd to use chnget, all is fine.

Why is that?




Date2018-08-11 16:45
FromFrancois PINOT
SubjectRe: [Csnd] ctcsound to invalue vs chnget
Can you attach the csd?

François

2018-08-11 17:34 GMT+02:00 Richard <zappfinger@gmail.com>:

I am trying the CsoundSession class by Francois Pinot, with the following added lines:

if __name__ == '__main__':
    cs = CsoundSession("/Users/richard/PycharmProjects/OSCall/csds/Mono_Synth.csd")
    while 1:
        cs.setControlChannel('att', float(1.5))
        cs.setControlChannel('rel', float(22.))
        cs.setControlChannel('pitchglide', float(1.5))
        time.sleep(1)
        print '.',

The csd comes from CsoundQt and it uses invalues. This works fine in CsoundQt.

But with my Python code it does not produce any sound. Also, I got warnings about invalue callback not set.
When I change the csd to use chnget, all is fine.

Why is that?



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

Date2018-08-11 16:59
FromTarmo Johannes
SubjectRe: [Csnd] ctcsound to invalue vs chnget
Hi,

invalue requires a function to be set as callback to process the channel data and it up to user to write and set it. CsoundQt does it automatically in its code.
chnget cnhset are more easy to use and in CsoundQt also more efficient, in fact.

Hopefully this answers your question.

Greetings, 
Tarmo

11.08.2018 18:34 kirjutas kuupäeval "Richard" <zappfinger@gmail.com>:

I am trying the CsoundSession class by Francois Pinot, with the following added lines:

if __name__ == '__main__':
    cs = CsoundSession("/Users/richard/PycharmProjects/OSCall/csds/Mono_Synth.csd")
    while 1:
        cs.setControlChannel('att', float(1.5))
        cs.setControlChannel('rel', float(22.))
        cs.setControlChannel('pitchglide', float(1.5))
        time.sleep(1)
        print '.',

The csd comes from CsoundQt and it uses invalues. This works fine in CsoundQt.

But with my Python code it does not produce any sound. Also, I got warnings about invalue callback not set.
When I change the csd to use chnget, all is fine.

Why is that?



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

Date2018-08-11 19:36
FromRichard
SubjectRe: [Csnd] ctcsound to invalue vs chnget
AttachmentsMono_Synth.csd  

Of course, here it is..the invalue's are changed here to chnget's so you might want to change them back...

Richard
On 11/08/18 17:45, Francois PINOT wrote:
Can you attach the csd?

François

2018-08-11 17:34 GMT+02:00 Richard <zappfinger@gmail.com>:

I am trying the CsoundSession class by Francois Pinot, with the following added lines:

if __name__ == '__main__':
    cs = CsoundSession("/Users/richard/PycharmProjects/OSCall/csds/Mono_Synth.csd")
    while 1:
        cs.setControlChannel('att', float(1.5))
        cs.setControlChannel('rel', float(22.))
        cs.setControlChannel('pitchglide', float(1.5))
        time.sleep(1)
        print '.',

The csd comes from CsoundQt and it uses invalues. This works fine in CsoundQt.

But with my Python code it does not produce any sound. Also, I got warnings about invalue callback not set.
When I change the csd to use chnget, all is fine.

Why is that?



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