Csound Csound-dev Csound-tekno Search About

API, notebooks -- and csnd6.py vs ctcsound

Date2016-09-27 02:24
FromForrest Curo
SubjectAPI, notebooks -- and csnd6.py vs ctcsound
I can run the API fine with python via ctcsound on jupyter-notebooks.

Wanting to reach it calling csnd6 from a julia kernel in a jupyter notebook:

using NBInclude
using PyCall

I get an error (because "csnd.Csound_Success" is from an obsolete python module...)

I like running csound from a notebook window; turning an 'orc' into a modular sum of strings should be a handy way to work on ideas -- but I also prefer the way julia handles strings & calls to C functions -- while still accessing python when wanted.

So -- how much still works from the old csound api examples?
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-09-27 05:40
FromForrest Curo
SubjectRe: API, notebooks -- and csnd6.py vs ctcsound
Sorry, looking more carefully at the later ctcsound notebooks --

It seems that what I was asking is in there; I just wasn't finding it with the 'perform' example I'd gotten used to. (Everything's too hard & there's too much of it!) Phew!

On Mon, Sep 26, 2016 at 6:24 PM, Forrest Curo <treegestalt@gmail.com> wrote:
I can run the API fine with python via ctcsound on jupyter-notebooks.

Wanting to reach it calling csnd6 from a julia kernel in a jupyter notebook:

using NBInclude
using PyCall

I get an error (because "csnd.Csound_Success" is from an obsolete python module...)

I like running csound from a notebook window; turning an 'orc' into a modular sum of strings should be a handy way to work on ideas -- but I also prefer the way julia handles strings & calls to C functions -- while still accessing python when wanted.

So -- how much still works from the old csound api examples?

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-10-01 16:49
FromForrest Curo
SubjectRe: API, notebooks -- and csnd6.py vs ctcsound
This turned out to be a simple installation problem on Ubuntu:

If you compile/install your own csound, you need to make sure that csnd6 gets updated in /usr/lib/python2.7 .

ie cd to the new version and:
sudo cp csnd6.py /usr/lib/python2.7/




On Mon, Sep 26, 2016 at 9:40 PM, Forrest Curo <treegestalt@gmail.com> wrote:
Sorry, looking more carefully at the later ctcsound notebooks --

It seems that what I was asking is in there; I just wasn't finding it with the 'perform' example I'd gotten used to. (Everything's too hard & there's too much of it!) Phew!

On Mon, Sep 26, 2016 at 6:24 PM, Forrest Curo <treegestalt@gmail.com> wrote:
I can run the API fine with python via ctcsound on jupyter-notebooks.

Wanting to reach it calling csnd6 from a julia kernel in a jupyter notebook:

using NBInclude
using PyCall

I get an error (because "csnd.Csound_Success" is from an obsolete python module...)

I like running csound from a notebook window; turning an 'orc' into a modular sum of strings should be a handy way to work on ideas -- but I also prefer the way julia handles strings & calls to C functions -- while still accessing python when wanted.

So -- how much still works from the old csound api examples?


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-10-01 18:41
FromFrancois PINOT
SubjectRe: API, notebooks -- and csnd6.py vs ctcsound
On my system (Ubuntu 16.04), I installed Anaconda with both Python 2.7 and Python 3.5. I make sure to use the python 2.7 environment before building csound: the command in anaconda is "source activate py27" because my Python 2.7 environment is called "py27". So ctcsound.py, csnd6.py, and _csnd6.so are installed in the site-packages directory of the Python 2.7 environment. Then I copy manually ctcsound.py into the site-packages of the Python 3.5 environment to have it available with Python 3.5 as well.

François

2016-10-01 17:49 GMT+02:00 Forrest Curo <treegestalt@gmail.com>:
This turned out to be a simple installation problem on Ubuntu:

If you compile/install your own csound, you need to make sure that csnd6 gets updated in /usr/lib/python2.7 .

ie cd to the new version and:
sudo cp csnd6.py /usr/lib/python2.7/




On Mon, Sep 26, 2016 at 9:40 PM, Forrest Curo <treegestalt@gmail.com> wrote:
Sorry, looking more carefully at the later ctcsound notebooks --

It seems that what I was asking is in there; I just wasn't finding it with the 'perform' example I'd gotten used to. (Everything's too hard & there's too much of it!) Phew!

On Mon, Sep 26, 2016 at 6:24 PM, Forrest Curo <treegestalt@gmail.com> wrote:
I can run the API fine with python via ctcsound on jupyter-notebooks.

Wanting to reach it calling csnd6 from a julia kernel in a jupyter notebook:

using NBInclude
using PyCall

I get an error (because "csnd.Csound_Success" is from an obsolete python module...)

I like running csound from a notebook window; turning an 'orc' into a modular sum of strings should be a handy way to work on ideas -- but I also prefer the way julia handles strings & calls to C functions -- while still accessing python when wanted.

So -- how much still works from the old csound api examples?


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-10-01 20:04
FromForrest Curo
SubjectRe: API, notebooks -- and csnd6.py vs ctcsound
Thanks much, I'll need to copy those too then!

(Yep, both were lurking in different directories... so I cp'd them in; but for some reason, importing ctcsound hadn't been a difficulty. It's a jungle in my filesystem.)

On Sat, Oct 1, 2016 at 10:41 AM, Francois PINOT <fggpinot@gmail.com> wrote:
On my system (Ubuntu 16.04), I installed Anaconda with both Python 2.7 and Python 3.5. I make sure to use the python 2.7 environment before building csound: the command in anaconda is "source activate py27" because my Python 2.7 environment is called "py27". So ctcsound.py, csnd6.py, and _csnd6.so are installed in the site-packages directory of the Python 2.7 environment. Then I copy manually ctcsound.py into the site-packages of the Python 3.5 environment to have it available with Python 3.5 as well.

François

2016-10-01 17:49 GMT+02:00 Forrest Curo <treegestalt@gmail.com>:
This turned out to be a simple installation problem on Ubuntu:

If you compile/install your own csound, you need to make sure that csnd6 gets updated in /usr/lib/python2.7 .

ie cd to the new version and:
sudo cp csnd6.py /usr/lib/python2.7/




On Mon, Sep 26, 2016 at 9:40 PM, Forrest Curo <treegestalt@gmail.com> wrote:
Sorry, looking more carefully at the later ctcsound notebooks --

It seems that what I was asking is in there; I just wasn't finding it with the 'perform' example I'd gotten used to. (Everything's too hard & there's too much of it!) Phew!

On Mon, Sep 26, 2016 at 6:24 PM, Forrest Curo <treegestalt@gmail.com> wrote:
I can run the API fine with python via ctcsound on jupyter-notebooks.

Wanting to reach it calling csnd6 from a julia kernel in a jupyter notebook:

using NBInclude
using PyCall

I get an error (because "csnd.Csound_Success" is from an obsolete python module...)

I like running csound from a notebook window; turning an 'orc' into a modular sum of strings should be a handy way to work on ideas -- but I also prefer the way julia handles strings & calls to C functions -- while still accessing python when wanted.

So -- how much still works from the old csound api examples?


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-10-01 21:43
FromFrancois PINOT
SubjectRe: API, notebooks -- and csnd6.py vs ctcsound
ctcsound.py does not need any other file while csnd6.py needs _csnd6.so. ctcsound.py works with Python 2.x and Python 3.x as well as long as they can find it int their path. csnd6 can only work with Python 2.x due to its generation by swig.

Finally, I think it's actually better to build csound within a python 2.x environment, because the family of py... opcodes where developed in such an environment.

François

2016-10-01 21:04 GMT+02:00 Forrest Curo <treegestalt@gmail.com>:
Thanks much, I'll need to copy those too then!

(Yep, both were lurking in different directories... so I cp'd them in; but for some reason, importing ctcsound hadn't been a difficulty. It's a jungle in my filesystem.)

On Sat, Oct 1, 2016 at 10:41 AM, Francois PINOT <fggpinot@gmail.com> wrote:
On my system (Ubuntu 16.04), I installed Anaconda with both Python 2.7 and Python 3.5. I make sure to use the python 2.7 environment before building csound: the command in anaconda is "source activate py27" because my Python 2.7 environment is called "py27". So ctcsound.py, csnd6.py, and _csnd6.so are installed in the site-packages directory of the Python 2.7 environment. Then I copy manually ctcsound.py into the site-packages of the Python 3.5 environment to have it available with Python 3.5 as well.

François

2016-10-01 17:49 GMT+02:00 Forrest Curo <treegestalt@gmail.com>:
This turned out to be a simple installation problem on Ubuntu:

If you compile/install your own csound, you need to make sure that csnd6 gets updated in /usr/lib/python2.7 .

ie cd to the new version and:
sudo cp csnd6.py /usr/lib/python2.7/




On Mon, Sep 26, 2016 at 9:40 PM, Forrest Curo <treegestalt@gmail.com> wrote:
Sorry, looking more carefully at the later ctcsound notebooks --

It seems that what I was asking is in there; I just wasn't finding it with the 'perform' example I'd gotten used to. (Everything's too hard & there's too much of it!) Phew!

On Mon, Sep 26, 2016 at 6:24 PM, Forrest Curo <treegestalt@gmail.com> wrote:
I can run the API fine with python via ctcsound on jupyter-notebooks.

Wanting to reach it calling csnd6 from a julia kernel in a jupyter notebook:

using NBInclude
using PyCall

I get an error (because "csnd.Csound_Success" is from an obsolete python module...)

I like running csound from a notebook window; turning an 'orc' into a modular sum of strings should be a handy way to work on ideas -- but I also prefer the way julia handles strings & calls to C functions -- while still accessing python when wanted.

So -- how much still works from the old csound api examples?


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

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