Csound Csound-dev Csound-tekno Search About

[Csnd] csnd tutorials/helpfiles

Date2007-11-09 12:33
FromDavid Worrall
Subject[Csnd] csnd tutorials/helpfiles
Hi All,
I've been finding my way around the python wrappers for csnd. In my  
search I've come across quite a few people who have found the process  
just too hard. So, bearing in mind thathis process is likely to  
attract new users,  I thought it would be good to begin to put a  
graduated introduction together.

I've just scratched out a temporary beginning, for the moment at  
http://www.avatar.com.au/sonify/csnd/

A couple of things suggest themselves.

Reference material
-------------------------
Apart from some simple examples, it would  be good to merge the  
output from help(csnd) with the info in the header files,  
particularly csound.h
Has anyone written such a script? It wouldn't be too hard a hack and  
then each version or compile options change, a reference could be  
computed by the user particular to their own system.

Examples
--------------
 From what I can see, the only example from the examples directory in  
the sources that runs on the default OSX .dmg install of v5.7 without  
being modified is Victor's vu.py (It relies on TclSTk being  
installed.) tFair enough - It is a "way in" I could put up a hacked  
down version (no graphics), just to illustrate the use of  
CsoundPerformanceThread and SetChannel and proceed that way ...

I'm not sure if  people would find these type of things useful.  
Perhaps you have other ideas. Feedback?

ciao,

David



_________________________________________________
experimental polymedia:	www.avatar.com.au
Sonic Communications Research Group,
University of Canberra:	 creative.canberra.edu.au/scrg/



Date2007-11-09 12:50
FromVictor Lazzarini
Subject[Csnd] Re: csnd tutorials/helpfiles
In my Intel mac with MacPython 2.4 I can get vu.py, shapes.py
keys.py and oscilloscope.py. Audio is choppy with oscilloscope
but the thing runs.

Victor

At 12:33 09/11/2007, you wrote:
>Hi All,
>I've been finding my way around the python wrappers for csnd. In my
>search I've come across quite a few people who have found the process
>just too hard. So, bearing in mind thathis process is likely to
>attract new users,  I thought it would be good to begin to put a
>graduated introduction together.
>
>I've just scratched out a temporary beginning, for the moment at
>http://www.avatar.com.au/sonify/csnd/
>
>A couple of things suggest themselves.
>
>Reference material
>-------------------------
>Apart from some simple examples, it would  be good to merge the
>output from help(csnd) with the info in the header files,
>particularly csound.h
>Has anyone written such a script? It wouldn't be too hard a hack and
>then each version or compile options change, a reference could be
>computed by the user particular to their own system.
>
>Examples
>--------------
> From what I can see, the only example from the examples directory in
>the sources that runs on the default OSX .dmg install of v5.7 without
>being modified is Victor's vu.py (It relies on TclSTk being
>installed.) tFair enough - It is a "way in" I could put up a hacked
>down version (no graphics), just to illustrate the use of
>CsoundPerformanceThread and SetChannel and proceed that way ...
>
>I'm not sure if  people would find these type of things useful.
>Perhaps you have other ideas. Feedback?
>
>ciao,
>
>David
>
>
>
>_________________________________________________
>experimental polymedia: www.avatar.com.au
>Sonic Communications Research Group,
>University of Canberra: creative.canberra.edu.au/scrg/
>
>

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth


Date2007-11-09 15:17
Fromjoachim heintz
Subject[Csnd] Re: csnd tutorials/helpfiles
Hi David -

I find it very useful. But your example "Playing an existing csd  
file" doesn't work on my system (MacPython 2.3, Csound PPC 5.07). No  
error messages, but it returns -1:

 >>> import csnd
 >>> cs = csnd.Csound()
 >>> fname = "/Users/jh/Documents/Csound/PythonInCsound/pythontest.csd"
 >>> cs.Perform(fname)
-1

When I first run main.py from Oeyvinds PartikkelCloudDesigner (it  
stops at a certain point, but after loading all the csnd stuff), it's  
ok (returns 0) and "test.aif" is written in the directory of the  
PartikkelCloudDesigner. So maybe there has to be one or more other  
tasks before cs.Perform(fname)?

Best -

	joachim



Am 09.11.2007 um 13:33 schrieb David Worrall:

> Hi All,
> I've been finding my way around the python wrappers for csnd. In my  
> search I've come across quite a few people who have found the  
> process just too hard. So, bearing in mind thathis process is  
> likely to attract new users,  I thought it would be good to begin  
> to put a graduated introduction together.
>
> I've just scratched out a temporary beginning, for the moment at  
> http://www.avatar.com.au/sonify/csnd/
>
> A couple of things suggest themselves.
>
> Reference material
> -------------------------
> Apart from some simple examples, it would  be good to merge the  
> output from help(csnd) with the info in the header files,  
> particularly csound.h
> Has anyone written such a script? It wouldn't be too hard a hack  
> and then each version or compile options change, a reference could  
> be computed by the user particular to their own system.
>
> Examples
> --------------
> From what I can see, the only example from the examples directory  
> in the sources that runs on the default OSX .dmg install of v5.7  
> without being modified is Victor's vu.py (It relies on TclSTk being  
> installed.) tFair enough - It is a "way in" I could put up a hacked  
> down version (no graphics), just to illustrate the use of  
> CsoundPerformanceThread and SetChannel and proceed that way ...
>
> I'm not sure if  people would find these type of things useful.  
> Perhaps you have other ideas. Feedback?
>
> ciao,
>
> David
>
>
>
> _________________________________________________
> experimental polymedia:	www.avatar.com.au
> Sonic Communications Research Group,
> University of Canberra:	 creative.canberra.edu.au/scrg/
>
>
>