Csound Csound-dev Csound-tekno Search About

[Cs-dev] chani,chano

Date2005-11-05 12:29
FromVictor Lazzarini
Subject[Cs-dev] chani,chano
 What is the API function that gives access to
chani, chano. I can only see  (in csound.h) the
'chn'-opcode related functions (as well as the
invalue, outvalue). Do we access it with the
same function as the chn opcodes, using integers
as channel names?

Victor


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-11-05 12:57
FromIstvan Varga
SubjectRe: [Cs-dev] chani,chano
Victor Lazzarini wrote:

>  What is the API function that gives access to
> chani, chano. I can only see  (in csound.h) the
> 'chn'-opcode related functions (as well as the
> invalue, outvalue). Do we access it with the
> same function as the chn opcodes, using integers
> as channel names?

No, there are no functions for chani/chano yet. These opcodes
use the following members of the CSOUND structure:

     int           nchanik, nchania, nchanok, nchanoa;
     MYFLT         *chanik, *chania, *chanok, *chanoa;

this is somewhat similar to ZAK, although I am not sure if the
nchanik, nchania, etc. are the size of the corresponding array,
or the maximum possible index (Opcodes/bus.c seems to be buggy,
as it mixes the above two possible interpretations, resulting in
invalid memory accesses).
To make it possible to access this bus from a host application,
new API functions need to be added. This should be easy once there
is agreement on the name, syntax, and expected behavior of the new
functions.



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net