Csound Csound-dev Csound-tekno Search About

ctcsound and Csound arrays

Date2016-12-02 22:45
FromOeyvind Brandtsegg
Subjectctcsound and Csound arrays
Hi,
I am very happy with the methods for accessing Csound tables in Python
via ctcsound. Is there a similar way of accessing Csound arrays with
ctcsound?
best
Oeyvind

Date2016-12-02 22:55
FromVictor Lazzarini
SubjectRe: ctcsound and Csound arrays
No, the API does not provide access to arrays. Something we have not yet thought
about. Actually someone asked me the
same thing over the weekend.

We need to work out the best way to do it.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 2 Dec 2016, at 22:46, Oeyvind Brandtsegg  wrote:
> 
> Hi,
> I am very happy with the methods for accessing Csound tables in Python
> via ctcsound. Is there a similar way of accessing Csound arrays with
> ctcsound?
> best
> Oeyvind
> -- 
> 
> Oeyvind Brandtsegg
> Professor of Music Technology
> NTNU
> 7491 Trondheim
> Norway
> Cell: +47 92 203 205
> 
> http://www.partikkelaudio.com/
> http://crossadaptive.hf.ntnu.no
> http://gdsp.hf.ntnu.no/
> http://soundcloud.com/brandtsegg
> http://flyndresang.no/
> http://soundcloud.com/t-emp
> 
> 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

Date2016-12-02 22:58
FromVictor Lazzarini
SubjectRe: ctcsound and Csound arrays
Note that arrays are like other var types, not
tables. So the way to go at the moment would be to provide bus channel support.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 2 Dec 2016, at 22:55, Victor Lazzarini  wrote:
> 
> No, the API does not provide access to arrays. Something we have not yet thought
> about. Actually someone asked me the
> same thing over the weekend.
> 
> We need to work out the best way to do it.
> 
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
> 
>> On 2 Dec 2016, at 22:46, Oeyvind Brandtsegg  wrote:
>> 
>> Hi,
>> I am very happy with the methods for accessing Csound tables in Python
>> via ctcsound. Is there a similar way of accessing Csound arrays with
>> ctcsound?
>> best
>> Oeyvind
>> -- 
>> 
>> Oeyvind Brandtsegg
>> Professor of Music Technology
>> NTNU
>> 7491 Trondheim
>> Norway
>> Cell: +47 92 203 205
>> 
>> http://www.partikkelaudio.com/
>> http://crossadaptive.hf.ntnu.no
>> http://gdsp.hf.ntnu.no/
>> http://soundcloud.com/brandtsegg
>> http://flyndresang.no/
>> http://soundcloud.com/t-emp
>> 
>> 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

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

Date2016-12-02 23:21
FromOeyvind Brandtsegg
SubjectRe: ctcsound and Csound arrays
Yes, I see.
But wouldnt that incur a substantial amount of data copying (if the
array is large and k-rate)?



2016-12-02 14:58 GMT-08:00 Victor Lazzarini :
> Note that arrays are like other var types, not
> tables. So the way to go at the moment would be to provide bus channel support.
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
>> On 2 Dec 2016, at 22:55, Victor Lazzarini  wrote:
>>
>> No, the API does not provide access to arrays. Something we have not yet thought
>> about. Actually someone asked me the
>> same thing over the weekend.
>>
>> We need to work out the best way to do it.
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>>> On 2 Dec 2016, at 22:46, Oeyvind Brandtsegg  wrote:
>>>
>>> Hi,
>>> I am very happy with the methods for accessing Csound tables in Python
>>> via ctcsound. Is there a similar way of accessing Csound arrays with
>>> ctcsound?
>>> best
>>> Oeyvind
>>> --
>>>
>>> Oeyvind Brandtsegg
>>> Professor of Music Technology
>>> NTNU
>>> 7491 Trondheim
>>> Norway
>>> Cell: +47 92 203 205
>>>
>>> http://www.partikkelaudio.com/
>>> http://crossadaptive.hf.ntnu.no
>>> http://gdsp.hf.ntnu.no/
>>> http://soundcloud.com/brandtsegg
>>> http://flyndresang.no/
>>> http://soundcloud.com/t-emp
>>>
>>> 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
>
> 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


Date2016-12-03 09:34
FromFrancois PINOT
SubjectRe: ctcsound and Csound arrays
If the array is contained in a contiguous block of memory, the API could have a function returning a struct describing the area: pointer to the data, shape of the array, size in each dim. This struct could be used within different foreign languages to access directly the array.

François

2016-12-03 0:21 GMT+01:00 Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no>:
Yes, I see.
But wouldnt that incur a substantial amount of data copying (if the
array is large and k-rate)?



2016-12-02 14:58 GMT-08:00 Victor Lazzarini <Victor.Lazzarini@nuim.ie>:
> Note that arrays are like other var types, not
> tables. So the way to go at the moment would be to provide bus channel support.
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
>> On 2 Dec 2016, at 22:55, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:
>>
>> No, the API does not provide access to arrays. Something we have not yet thought
>> about. Actually someone asked me the
>> same thing over the weekend.
>>
>> We need to work out the best way to do it.
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>>> On 2 Dec 2016, at 22:46, Oeyvind Brandtsegg <oyvind.brandtsegg@NTNU.NO> wrote:
>>>
>>> Hi,
>>> I am very happy with the methods for accessing Csound tables in Python
>>> via ctcsound. Is there a similar way of accessing Csound arrays with
>>> ctcsound?
>>> best
>>> Oeyvind
>>> --
>>>
>>> Oeyvind Brandtsegg
>>> Professor of Music Technology
>>> NTNU
>>> 7491 Trondheim
>>> Norway
>>> Cell: +47 92 203 205
>>>
>>> http://www.partikkelaudio.com/
>>> http://crossadaptive.hf.ntnu.no
>>> http://gdsp.hf.ntnu.no/
>>> http://soundcloud.com/brandtsegg
>>> http://flyndresang.no/
>>> http://soundcloud.com/t-emp
>>>
>>> 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
>
> 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



--

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://www.partikkelaudio.com/
http://crossadaptive.hf.ntnu.no
http://gdsp.hf.ntnu.no/
http://soundcloud.com/brandtsegg
http://flyndresang.no/
http://soundcloud.com/t-emp

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

Date2016-12-03 09:54
FromVictor Lazzarini
SubjectRe: ctcsound and Csound arrays
yes, and in the case of ctcsound, this type of thing is very well handled by numpy arrays
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 3 Dec 2016, at 09:34, Francois PINOT  wrote:
> 
> If the array is contained in a contiguous block of memory, the API could have a function returning a struct describing the area: pointer to the data, shape of the array, size in each dim. This struct could be used within different foreign languages to access directly the array.
> 
> François
> 
> 2016-12-03 0:21 GMT+01:00 Oeyvind Brandtsegg :
> Yes, I see.
> But wouldnt that incur a substantial amount of data copying (if the
> array is large and k-rate)?
> 
> 
> 
> 2016-12-02 14:58 GMT-08:00 Victor Lazzarini :
> > Note that arrays are like other var types, not
> > tables. So the way to go at the moment would be to provide bus channel support.
> >
> > Victor Lazzarini
> > Dean of Arts, Celtic Studies, and Philosophy
> > Maynooth University
> > Ireland
> >
> >> On 2 Dec 2016, at 22:55, Victor Lazzarini  wrote:
> >>
> >> No, the API does not provide access to arrays. Something we have not yet thought
> >> about. Actually someone asked me the
> >> same thing over the weekend.
> >>
> >> We need to work out the best way to do it.
> >>
> >> Victor Lazzarini
> >> Dean of Arts, Celtic Studies, and Philosophy
> >> Maynooth University
> >> Ireland
> >>
> >>> On 2 Dec 2016, at 22:46, Oeyvind Brandtsegg  wrote:
> >>>
> >>> Hi,
> >>> I am very happy with the methods for accessing Csound tables in Python
> >>> via ctcsound. Is there a similar way of accessing Csound arrays with
> >>> ctcsound?
> >>> best
> >>> Oeyvind
> >>> --
> >>>
> >>> Oeyvind Brandtsegg
> >>> Professor of Music Technology
> >>> NTNU
> >>> 7491 Trondheim
> >>> Norway
> >>> Cell: +47 92 203 205
> >>>
> >>> http://www.partikkelaudio.com/
> >>> http://crossadaptive.hf.ntnu.no
> >>> http://gdsp.hf.ntnu.no/
> >>> http://soundcloud.com/brandtsegg
> >>> http://flyndresang.no/
> >>> http://soundcloud.com/t-emp
> >>>
> >>> 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
> >
> > 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
> 
> 
> 
> --
> 
> Oeyvind Brandtsegg
> Professor of Music Technology
> NTNU
> 7491 Trondheim
> Norway
> Cell: +47 92 203 205
> 
> http://www.partikkelaudio.com/
> http://crossadaptive.hf.ntnu.no
> http://gdsp.hf.ntnu.no/
> http://soundcloud.com/brandtsegg
> http://flyndresang.no/
> http://soundcloud.com/t-emp
> 
> 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


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