Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:5368] Re: Python opcodes for file i/o?

Date2004-09-30 02:21
From"Michael Gogins"
Subject[CSOUND-DEV:5368] Re: Python opcodes for file i/o?
You should be able to do that. In fact you could write a Python script to
compile an orc that sets up ftables, then use Python to read or create data,
stuff the data into those ftables with the API, and then run the
performance. Or you could do the same thing from inside Python opcodes.

----- Original Message ----- 
From: 
To: "Csound Developers Discussion List" 
Sent: Wednesday, September 29, 2004 8:46 PM
Subject: [CSOUND-DEV:5367] Python opcodes for file i/o?


> I haven't yet taken a thorough look at the python within csound stuff, but
I'm
> curious as to whether that means we can use python from within csound
> instruments to do file i/o. If not, could such a thing be made possible?
Being
> able to do patch and table save/load with python would be a quantum leap
forward
> for making real time rigs in csound.
>
> Thanks
> Iain
>
>
>

Date2004-09-30 02:45
Fromiainduncan@telus.net
Subject[CSOUND-DEV:5370] Re: Python opcodes for file i/o?
Specifically I'm thinking of being able to read/write ftables from within a
cousnd instrument *while csound is playing*. Do you know which of the approaches
you mentioned would be best for that?

Thanks
iain


> You should be able to do that. In fact you could write a Python script to
> compile an orc that sets up ftables, then use Python to read or create data,
> stuff the data into those ftables with the API, and then run the
> performance. Or you could do the same thing from inside Python opcodes.
> 
> ----- Original Message ----- 
> From: 
> To: "Csound Developers Discussion List" 
> Sent: Wednesday, September 29, 2004 8:46 PM
> Subject: [CSOUND-DEV:5367] Python opcodes for file i/o?
> 
> 
> > I haven't yet taken a thorough look at the python within csound stuff, but
> I'm
> > curious as to whether that means we can use python from within csound
> > instruments to do file i/o. If not, could such a thing be made possible?
> Being
> > able to do patch and table save/load with python would be a quantum leap
> forward
> > for making real time rigs in csound.
> >
> > Thanks
> > Iain
> >
> >
> >
> 
> 


Date2004-09-30 05:43
Fromsteven yi
Subject[CSOUND-DEV:5372] Re: Python opcodes for file i/o?
Hi Iain,

I scoured through the mailing list as I thought I remember Maurizio 
mentioning being able to within pyext.  I found his old documentation 
(still available) at:

http://pythonsound.sourceforge.net/pyext.pdf

And it has information on manipulating function tables from python.  I 
have no idea to what extent if all of the python module as he had 
implemented is what is in Csound5, so the document might not be applicable.

steven


iainduncan@telus.net wrote:

>Specifically I'm thinking of being able to read/write ftables from within a
>cousnd instrument *while csound is playing*. Do you know which of the approaches
>you mentioned would be best for that?
>
>Thanks
>iain
>  
>