Csound Csound-dev Csound-tekno Search About

[Csnd] numpy score arrays

Date2014-04-25 12:44
FromDavid Worrall
Subject[Csnd] numpy score arrays
I've been looking at what others have been doing to produce/pre-process csound scores in Python.
I'm particularly interested in processing/manipulation for real time /-odac output.

* I looked at athenaCL. Very impressive -  thanks Christopher, but I couldn't find any reference in the manual to its use real time. Am I wrong?

* I also looked at pycso (renamed CSD) - thanks Jacob. This is an intelligent lighter touch - more what I'm looking for - but it doesn't seem to use Numpy arrays, which is surprising, given it has dtype=object and is multidimensional and fast….. Perhaps I'm wrong here too.

* I didn't check CsoundAC - it didn't compile automatically on my build, despite having CMAKE config BUILD_CSOUND_AC ON. And I couldn't find quickly how to compile it independently. Perhaps it needs some other library….

Which leads me to my question. Do any of you have/know of any simple score manipulation routines in python that hold the scores in numpy arrays?

Thanks in advance,

David

______________________________________
Prof. Dr. David Worrall
Emerging Audio Research (EAR)
Audio Department
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
Telefon  +49 (0) 91 31 / 7 76-62 44
Fax      +49 (0) 91 31 / 7 76-20 99
E-Mail: david.worrall@iis.fraunhofer.de
Internet: www.iis.fraunhofer.de 
---
Adjunct Senior Research Fellow
School of Music, Australian National University





Date2014-05-17 00:02
FromAndres Cabrera
SubjectRe: [Csnd] numpy score arrays
Hi David,

I've had this post on the back of my mind, as I want something along these lines, probably for the same reasons as you, to do interactive sonification. I'm currently teaching a course on sonification, and I've been using the ipython notebook, which has been great:

http://nbviewer.ipython.org/github/mantaraya36/240F-ipython/blob/master/Statistical%20Sonification%20II.ipynb

And I've written a (very simple so far) module to simplify interactive usage of csound within the ipython notebook, called icsound. You can find it here:

https://github.com/mantaraya36/icsound

Maybe this could grow to be something useful for the sonification community. What do you think?

Cheers,
Andrés




On Fri, Apr 25, 2014 at 4:44 AM, David Worrall <david.worrall@iis.fraunhofer.de> wrote:
I've been looking at what others have been doing to produce/pre-process csound scores in Python.
I'm particularly interested in processing/manipulation for real time /-odac output.

* I looked at athenaCL. Very impressive -  thanks Christopher, but I couldn't find any reference in the manual to its use real time. Am I wrong?

* I also looked at pycso (renamed CSD) - thanks Jacob. This is an intelligent lighter touch - more what I'm looking for - but it doesn't seem to use Numpy arrays, which is surprising, given it has dtype=object and is multidimensional and fast….. Perhaps I'm wrong here too.

* I didn't check CsoundAC - it didn't compile automatically on my build, despite having CMAKE config BUILD_CSOUND_AC ON. And I couldn't find quickly how to compile it independently. Perhaps it needs some other library….

Which leads me to my question. Do any of you have/know of any simple score manipulation routines in python that hold the scores in numpy arrays?

Thanks in advance,

David

______________________________________
Prof. Dr. David Worrall
Emerging Audio Research (EAR)
Audio Department
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
Telefon  +49 (0) 91 31 / 7 76-62 44
Fax      +49 (0) 91 31 / 7 76-20 99
E-Mail: david.worrall@iis.fraunhofer.de
Internet: www.iis.fraunhofer.de 
---
Adjunct Senior Research Fellow
School of Music, Australian National University






Date2014-05-17 03:13
FromMichael Gogins
SubjectRe: [Csnd] numpy score arrays

Check out music21.

Regards,
Mike

On May 16, 2014 7:03 PM, "Andres Cabrera" <mantaraya36@gmail.com> wrote:
Hi David,

I've had this post on the back of my mind, as I want something along these lines, probably for the same reasons as you, to do interactive sonification. I'm currently teaching a course on sonification, and I've been using the ipython notebook, which has been great:

http://nbviewer.ipython.org/github/mantaraya36/240F-ipython/blob/master/Statistical%20Sonification%20II.ipynb

And I've written a (very simple so far) module to simplify interactive usage of csound within the ipython notebook, called icsound. You can find it here:

https://github.com/mantaraya36/icsound

Maybe this could grow to be something useful for the sonification community. What do you think?

Cheers,
Andrés




On Fri, Apr 25, 2014 at 4:44 AM, David Worrall <david.worrall@iis.fraunhofer.de> wrote:
I've been looking at what others have been doing to produce/pre-process csound scores in Python.
I'm particularly interested in processing/manipulation for real time /-odac output.

* I looked at athenaCL. Very impressive -  thanks Christopher, but I couldn't find any reference in the manual to its use real time. Am I wrong?

* I also looked at pycso (renamed CSD) - thanks Jacob. This is an intelligent lighter touch - more what I'm looking for - but it doesn't seem to use Numpy arrays, which is surprising, given it has dtype=object and is multidimensional and fast….. Perhaps I'm wrong here too.

* I didn't check CsoundAC - it didn't compile automatically on my build, despite having CMAKE config BUILD_CSOUND_AC ON. And I couldn't find quickly how to compile it independently. Perhaps it needs some other library….

Which leads me to my question. Do any of you have/know of any simple score manipulation routines in python that hold the scores in numpy arrays?

Thanks in advance,

David

______________________________________
Prof. Dr. David Worrall
Emerging Audio Research (EAR)
Audio Department
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
Telefon  +49 (0) 91 31 / 7 76-62 44
Fax      +49 (0) 91 31 / 7 76-20 99
E-Mail: david.worrall@iis.fraunhofer.de
Internet: www.iis.fraunhofer.de 
---
Adjunct Senior Research Fellow
School of Music, Australian National University






Date2014-05-17 04:21
FromAndres Cabrera
SubjectRe: [Csnd] numpy score arrays
Thanks, Michael.

Yes, I've used music21, and it's a great package, but geared towards symbolic representations, so not exactly what I'm looking for...

It does interact very nicely with the ipython notebook:

http://nbviewer.ipython.org/github/mantaraya36/240E-ipython/blob/master/Symbolic%20MIR%20Using%20Music21.ipynb

Cheers,
Andrés


On Fri, May 16, 2014 at 7:13 PM, Michael Gogins <michael.gogins@gmail.com> wrote:

Check out music21.

Regards,
Mike

On May 16, 2014 7:03 PM, "Andres Cabrera" <mantaraya36@gmail.com> wrote:
Hi David,

I've had this post on the back of my mind, as I want something along these lines, probably for the same reasons as you, to do interactive sonification. I'm currently teaching a course on sonification, and I've been using the ipython notebook, which has been great:

http://nbviewer.ipython.org/github/mantaraya36/240F-ipython/blob/master/Statistical%20Sonification%20II.ipynb

And I've written a (very simple so far) module to simplify interactive usage of csound within the ipython notebook, called icsound. You can find it here:

https://github.com/mantaraya36/icsound

Maybe this could grow to be something useful for the sonification community. What do you think?

Cheers,
Andrés




On Fri, Apr 25, 2014 at 4:44 AM, David Worrall <david.worrall@iis.fraunhofer.de> wrote:
I've been looking at what others have been doing to produce/pre-process csound scores in Python.
I'm particularly interested in processing/manipulation for real time /-odac output.

* I looked at athenaCL. Very impressive -  thanks Christopher, but I couldn't find any reference in the manual to its use real time. Am I wrong?

* I also looked at pycso (renamed CSD) - thanks Jacob. This is an intelligent lighter touch - more what I'm looking for - but it doesn't seem to use Numpy arrays, which is surprising, given it has dtype=object and is multidimensional and fast….. Perhaps I'm wrong here too.

* I didn't check CsoundAC - it didn't compile automatically on my build, despite having CMAKE config BUILD_CSOUND_AC ON. And I couldn't find quickly how to compile it independently. Perhaps it needs some other library….

Which leads me to my question. Do any of you have/know of any simple score manipulation routines in python that hold the scores in numpy arrays?

Thanks in advance,

David

______________________________________
Prof. Dr. David Worrall
Emerging Audio Research (EAR)
Audio Department
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
Telefon  +49 (0) 91 31 / 7 76-62 44
Fax      +49 (0) 91 31 / 7 76-20 99
E-Mail: david.worrall@iis.fraunhofer.de
Internet: www.iis.fraunhofer.de 
---
Adjunct Senior Research Fellow
School of Music, Australian National University







Date2014-05-17 07:44
FromTarmo Johannes
SubjectRe: [Csnd] numpy score arrays

Great example,
Thank you!
Tarmo

17.05.2014 1:03 kirjutas kuupäeval "Andres Cabrera" <mantaraya36@gmail.com>:
Hi David,

I've had this post on the back of my mind, as I want something along these lines, probably for the same reasons as you, to do interactive sonification. I'm currently teaching a course on sonification, and I've been using the ipython notebook, which has been great:

http://nbviewer.ipython.org/github/mantaraya36/240F-ipython/blob/master/Statistical%20Sonification%20II.ipynb

And I've written a (very simple so far) module to simplify interactive usage of csound within the ipython notebook, called icsound. You can find it here:

https://github.com/mantaraya36/icsound

Maybe this could grow to be something useful for the sonification community. What do you think?

Cheers,
Andrés




On Fri, Apr 25, 2014 at 4:44 AM, David Worrall <david.worrall@iis.fraunhofer.de> wrote:
I've been looking at what others have been doing to produce/pre-process csound scores in Python.
I'm particularly interested in processing/manipulation for real time /-odac output.

* I looked at athenaCL. Very impressive -  thanks Christopher, but I couldn't find any reference in the manual to its use real time. Am I wrong?

* I also looked at pycso (renamed CSD) - thanks Jacob. This is an intelligent lighter touch - more what I'm looking for - but it doesn't seem to use Numpy arrays, which is surprising, given it has dtype=object and is multidimensional and fast….. Perhaps I'm wrong here too.

* I didn't check CsoundAC - it didn't compile automatically on my build, despite having CMAKE config BUILD_CSOUND_AC ON. And I couldn't find quickly how to compile it independently. Perhaps it needs some other library….

Which leads me to my question. Do any of you have/know of any simple score manipulation routines in python that hold the scores in numpy arrays?

Thanks in advance,

David

______________________________________
Prof. Dr. David Worrall
Emerging Audio Research (EAR)
Audio Department
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
Telefon  +49 (0) 91 31 / 7 76-62 44
Fax      +49 (0) 91 31 / 7 76-20 99
E-Mail: david.worrall@iis.fraunhofer.de
Internet: www.iis.fraunhofer.de 
---
Adjunct Senior Research Fellow
School of Music, Australian National University






Date2014-05-19 17:51
FromDavid Worrall
SubjectRe: [Csnd] numpy score arrays
Hi Andres,

Fabulous - elegant - thanks for sharing! And the beginning of something really useful, I'm sure!

Please keep me informed of any developments - I'll let people know about it at ICAD this year, OK?

ciao,
David


On 17.05.2014, at 01:02, Andres Cabrera <mantaraya36@gmail.com> wrote:

Hi David,

I've had this post on the back of my mind, as I want something along these lines, probably for the same reasons as you, to do interactive sonification. I'm currently teaching a course on sonification, and I've been using the ipython notebook, which has been great:

http://nbviewer.ipython.org/github/mantaraya36/240F-ipython/blob/master/Statistical%20Sonification%20II.ipynb

And I've written a (very simple so far) module to simplify interactive usage of csound within the ipython notebook, called icsound. You can find it here:

https://github.com/mantaraya36/icsound

Maybe this could grow to be something useful for the sonification community. What do you think?

Cheers,
Andrés




On Fri, Apr 25, 2014 at 4:44 AM, David Worrall <david.worrall@iis.fraunhofer.de> wrote:
I've been looking at what others have been doing to produce/pre-process csound scores in Python.
I'm particularly interested in processing/manipulation for real time /-odac output.

* I looked at athenaCL. Very impressive -  thanks Christopher, but I couldn't find any reference in the manual to its use real time. Am I wrong?

* I also looked at pycso (renamed CSD) - thanks Jacob. This is an intelligent lighter touch - more what I'm looking for - but it doesn't seem to use Numpy arrays, which is surprising, given it has dtype=object and is multidimensional and fast….. Perhaps I'm wrong here too.

* I didn't check CsoundAC - it didn't compile automatically on my build, despite having CMAKE config BUILD_CSOUND_AC ON. And I couldn't find quickly how to compile it independently. Perhaps it needs some other library….

Which leads me to my question. Do any of you have/know of any simple score manipulation routines in python that hold the scores in numpy arrays?

Thanks in advance,

David

______________________________________
Prof. Dr. David Worrall
Emerging Audio Research (EAR)
Audio Department
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
Telefon  +49 (0) 91 31 / 7 76-62 44
Fax      +49 (0) 91 31 / 7 76-20 99
E-Mail: david.worrall@iis.fraunhofer.de
Internet: www.iis.fraunhofer.de 
---
Adjunct Senior Research Fellow
School of Music, Australian National University






______________________________________
Prof. Dr. David Worrall
Emerging Audio Research (EAR)
Audio Department
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
Telefon  +49 (0) 91 31 / 7 76-62 44
Fax      +49 (0) 91 31 / 7 76-20 99
E-Mail: david.worrall@iis.fraunhofer.de
Internet: www.iis.fraunhofer.de 
---
Adjunct Senior Research Fellow
School of Music, Australian National University





Date2014-05-20 05:03
FromAndres Cabrera
SubjectRe: [Csnd] numpy score arrays
Hi David,

Yes, it has worked nicely so far, and although it's still basically a proof of concept, it can become something really useful. BTW, did you use the installer, or the
 file directly?

I'll try to have something decent for ICAD to get people excited about Csound :)

Cheers,
Andrés


On Mon, May 19, 2014 at 9:51 AM, David Worrall <david.worrall@iis.fraunhofer.de> wrote:
Hi Andres,

Fabulous - elegant - thanks for sharing! And the beginning of something really useful, I'm sure!

Please keep me informed of any developments - I'll let people know about it at ICAD this year, OK?

ciao,
David


On 17.05.2014, at 01:02, Andres Cabrera <mantaraya36@gmail.com> wrote:

Hi David,

I've had this post on the back of my mind, as I want something along these lines, probably for the same reasons as you, to do interactive sonification. I'm currently teaching a course on sonification, and I've been using the ipython notebook, which has been great:

http://nbviewer.ipython.org/github/mantaraya36/240F-ipython/blob/master/Statistical%20Sonification%20II.ipynb

And I've written a (very simple so far) module to simplify interactive usage of csound within the ipython notebook, called icsound. You can find it here:

https://github.com/mantaraya36/icsound

Maybe this could grow to be something useful for the sonification community. What do you think?

Cheers,
Andrés




On Fri, Apr 25, 2014 at 4:44 AM, David Worrall <david.worrall@iis.fraunhofer.de> wrote:
I've been looking at what others have been doing to produce/pre-process csound scores in Python.
I'm particularly interested in processing/manipulation for real time /-odac output.

* I looked at athenaCL. Very impressive -  thanks Christopher, but I couldn't find any reference in the manual to its use real time. Am I wrong?

* I also looked at pycso (renamed CSD) - thanks Jacob. This is an intelligent lighter touch - more what I'm looking for - but it doesn't seem to use Numpy arrays, which is surprising, given it has dtype=object and is multidimensional and fast….. Perhaps I'm wrong here too.

* I didn't check CsoundAC - it didn't compile automatically on my build, despite having CMAKE config BUILD_CSOUND_AC ON. And I couldn't find quickly how to compile it independently. Perhaps it needs some other library….

Which leads me to my question. Do any of you have/know of any simple score manipulation routines in python that hold the scores in numpy arrays?

Thanks in advance,

David

______________________________________
Prof. Dr. David Worrall
Emerging Audio Research (EAR)
Audio Department
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
Telefon  +49 (0) 91 31 / 7 76-62 44
Fax      +49 (0) 91 31 / 7 76-20 99
E-Mail: david.worrall@iis.fraunhofer.de
Internet: www.iis.fraunhofer.de 
---
Adjunct Senior Research Fellow
School of Music, Australian National University






______________________________________
Prof. Dr. David Worrall
Emerging Audio Research (EAR)
Audio Department
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
Telefon  +49 (0) 91 31 / 7 76-62 44
Fax      +49 (0) 91 31 / 7 76-20 99
E-Mail: david.worrall@iis.fraunhofer.de
Internet: www.iis.fraunhofer.de 
---
Adjunct Senior Research Fellow
School of Music, Australian National University






Date2014-05-25 20:38
FromAndres Cabrera
SubjectRe: [Csnd] numpy score arrays
What kind of features would people like to see for it?

Cheers,
Andrés


On Mon, May 19, 2014 at 9:03 PM, Andres Cabrera <mantaraya36@gmail.com> wrote:
Hi David,

Yes, it has worked nicely so far, and although it's still basically a proof of concept, it can become something really useful. BTW, did you use the installer, or the
 file directly?

I'll try to have something decent for ICAD to get people excited about Csound :)

Cheers,
Andrés


On Mon, May 19, 2014 at 9:51 AM, David Worrall <david.worrall@iis.fraunhofer.de> wrote:
Hi Andres,

Fabulous - elegant - thanks for sharing! And the beginning of something really useful, I'm sure!

Please keep me informed of any developments - I'll let people know about it at ICAD this year, OK?

ciao,
David


On 17.05.2014, at 01:02, Andres Cabrera <mantaraya36@gmail.com> wrote:

Hi David,

I've had this post on the back of my mind, as I want something along these lines, probably for the same reasons as you, to do interactive sonification. I'm currently teaching a course on sonification, and I've been using the ipython notebook, which has been great:

http://nbviewer.ipython.org/github/mantaraya36/240F-ipython/blob/master/Statistical%20Sonification%20II.ipynb

And I've written a (very simple so far) module to simplify interactive usage of csound within the ipython notebook, called icsound. You can find it here:

https://github.com/mantaraya36/icsound

Maybe this could grow to be something useful for the sonification community. What do you think?

Cheers,
Andrés




On Fri, Apr 25, 2014 at 4:44 AM, David Worrall <david.worrall@iis.fraunhofer.de> wrote:
I've been looking at what others have been doing to produce/pre-process csound scores in Python.
I'm particularly interested in processing/manipulation for real time /-odac output.

* I looked at athenaCL. Very impressive -  thanks Christopher, but I couldn't find any reference in the manual to its use real time. Am I wrong?

* I also looked at pycso (renamed CSD) - thanks Jacob. This is an intelligent lighter touch - more what I'm looking for - but it doesn't seem to use Numpy arrays, which is surprising, given it has dtype=object and is multidimensional and fast….. Perhaps I'm wrong here too.

* I didn't check CsoundAC - it didn't compile automatically on my build, despite having CMAKE config BUILD_CSOUND_AC ON. And I couldn't find quickly how to compile it independently. Perhaps it needs some other library….

Which leads me to my question. Do any of you have/know of any simple score manipulation routines in python that hold the scores in numpy arrays?

Thanks in advance,

David

______________________________________
Prof. Dr. David Worrall
Emerging Audio Research (EAR)
Audio Department
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
Telefon  +49 (0) 91 31 / 7 76-62 44
Fax      +49 (0) 91 31 / 7 76-20 99
E-Mail: david.worrall@iis.fraunhofer.de
Internet: www.iis.fraunhofer.de 
---
Adjunct Senior Research Fellow
School of Music, Australian National University






______________________________________
Prof. Dr. David Worrall
Emerging Audio Research (EAR)
Audio Department
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
Telefon  +49 (0) 91 31 / 7 76-62 44
Fax      +49 (0) 91 31 / 7 76-20 99
E-Mail: david.worrall@iis.fraunhofer.de
Internet: www.iis.fraunhofer.de 
---
Adjunct Senior Research Fellow
School of Music, Australian National University