Csound Csound-dev Csound-tekno Search About

[Csnd] csoundSetChannelIOCallback() query...

Date2009-08-17 17:21
FromRory Walsh
Subject[Csnd] csoundSetChannelIOCallback() query...
csound.h states that this API function:

   * Sets callback function to be called by the opcodes 'chnsend' and
   * 'chnrecv'. Should be called between csoundPreCompile() and
   * csoundCompile().

I've never seen these opcodes, should that read chnset and chnget?

Rory.


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-08-18 01:44
FromAndres Cabrera
Subject[Csnd] Re: csoundSetChannelIOCallback() query...
Hi,

I've been looking at this precisely these days. The chnsend and
chnrecv opcodes are separate opcodes, which seem (i haven't really
looked at the code) to be different from chnget and chnset in that the
are callback based, i.e. they work just like the invalue and outvalue
opcodes. I'm preparing the manual pages for chnsend and chnrecv, but
still need to try them some more...

So I'm also interested in knowing if anyone has compared both
mechanisms and can say something about them. Since the functionality
is duplicated should one of them be dropped?

Cheers,
Andrés

On Mon, Aug 17, 2009 at 11:21 AM, Rory Walsh wrote:
> csound.h states that this API function:
>
>   * Sets callback function to be called by the opcodes 'chnsend' and
>   * 'chnrecv'. Should be called between csoundPreCompile() and
>   * csoundCompile().
>
> I've never seen these opcodes, should that read chnset and chnget?
>
> Rory.
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>



-- 


Andrés


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-08-18 10:22
FromRory Walsh
Subject[Csnd] Re: Re: csoundSetChannelIOCallback() query...
> mechanisms and can say something about them. Since the functionality
> is duplicated should one of them be dropped?

Especially given that chnrec and chnsend haven't been released to the
public as fas as I know? Well, up until now they still don't have a
manual page..

Rory.



>
> Cheers,
> Andrés
>
> On Mon, Aug 17, 2009 at 11:21 AM, Rory Walsh wrote:
>> csound.h states that this API function:
>>
>>   * Sets callback function to be called by the opcodes 'chnsend' and
>>   * 'chnrecv'. Should be called between csoundPreCompile() and
>>   * csoundCompile().
>>
>> I've never seen these opcodes, should that read chnset and chnget?
>>
>> Rory.
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>
>
>
> --
>
>
> Andrés
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-08-18 10:48
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: Re: Re: csoundSetChannelIOCallback() query...
>> mechanisms and can say something about them. Since the functionality
>> is duplicated should one of them be dropped?
>
> Especially given that chnrec and chnsend haven't been released to the
> public as fas as I know? Well, up until now they still don't have a
> manual page..
>
> Rory.
>

According to the changelog they were written in June 2006 by IV, as part
of a load of new stuff not discussed at the time.

==John



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-08-18 10:50
FromRory Walsh
Subject[Csnd] Re: Re: Re: Re: csoundSetChannelIOCallback() query...
Should they be depreciated now before people start using them?

2009/8/18  :
>>> mechanisms and can say something about them. Since the functionality
>>> is duplicated should one of them be dropped?
>>
>> Especially given that chnrec and chnsend haven't been released to the
>> public as fas as I know? Well, up until now they still don't have a
>> manual page..
>>
>> Rory.
>>
>
> According to the changelog they were written in June 2006 by IV, as part
> of a load of new stuff not discussed at the time.
>
> ==John
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-08-18 11:53
FromVictor.Lazzarini@nuim.ie
Subject[Csnd] Re: Re: Re: Re: csoundSetChannelIOCallback() query...
AttachmentsNone  None  

Date2009-08-18 12:27
FromAndres Cabrera
Subject[Csnd] Re: Re: Re: Re: Re: csoundSetChannelIOCallback() query...
They do have an advantage over invalue and outvalue in that they
should be able to send/receive audio and the handling of string
channels is less hacky for the programer (string channels are string
channels as opposed to having to use a "$" in the channel name).
Looking at the source, they do seem to be unfinished as their entries
in H/bus.h are (which makes no sense as chnrecv is not receiving
anything... and the perf function seems to be a stub):


 {  "chnrecv",     S(CHNSEND),          3,      "",             "So",
    (SUBR) chnrecv_opcode_init, (SUBR) notinit_opcode_stub, (SUBR) NULL },
 {  "chnsend",     S(CHNSEND),          3,      "",             "So",
    (SUBR) chnsend_opcode_init, (SUBR) notinit_opcode_stub, (SUBR) NULL },

I guess noone has the inclination or time to finish them, so maybe
they should be removed (not even deprecated as they were never
actually there). If they were finished, I would suggest deprecating
invalue/outvalue instead, as the software bus opcodes seem more
complete.

Cheers,
Andrés

On Tue, Aug 18, 2009 at 5:53 AM,  wrote:
> I would suggest we deprecate these functions as the
> invalue  and outvalue already do the same job. Noone
> AFAIK has ever used this interface.
>
> ----- Original Message -----
> From: jpff@cs.bath.ac.uk
> Date: Tuesday, August 18, 2009 6:48 am
> Subject: [Csnd] Re: Re: Re: csoundSetChannelIOCallback() query...
> To: csound@lists.bath.ac.uk
>
>> >> mechanisms and can say something about them. Since the
>> functionality>> is duplicated should one of them be dropped?
>> >
>> > Especially given that chnrec and chnsend haven't been released
>> to the
>> > public as fas as I know? Well, up until now they still don't
>> have a
>> > manual page..
>> >
>> > Rory.
>> >
>>
>> According to the changelog they were written in June 2006 by IV,
>> as part
>> of a load of new stuff not discussed at the time.
>>
>> ==John
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> "unsubscribe csound"
>
> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
> National University of Ireland, Maynooth
>



-- 


Andrés


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"