API, notebooks -- and csnd6.py vs ctcsound
Date | 2016-09-27 02:24 |
From | Forrest Curo |
Subject | API, 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 |
Date | 2016-09-27 05:40 |
From | Forrest Curo |
Subject | Re: 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:
|
Date | 2016-10-01 16:49 |
From | Forrest Curo |
Subject | Re: 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 .sudo cp csnd6.py /usr/lib/python2.7/ On Mon, Sep 26, 2016 at 9:40 PM, Forrest Curo <treegestalt@gmail.com> wrote:
|
Date | 2016-10-01 18:41 |
From | Francois PINOT |
Subject | Re: 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çois2016-10-01 17:49 GMT+02:00 Forrest Curo <treegestalt@gmail.com>:
|
Date | 2016-10-01 20:04 |
From | Forrest Curo |
Subject | Re: 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:
|
Date | 2016-10-01 21:43 |
From | Francois PINOT |
Subject | Re: 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.2016-10-01 21:04 GMT+02:00 Forrest Curo <treegestalt@gmail.com>:
|