| What I should have said, is from inside Csound instruments _using_ Python
opcodes.
In an external Python module you would define classes and functions that you
would use for generating your functions. Then in your instr definition you
would invoke those classes and functions. Possibly, you could pass the
Csound instance to your functions so that they would have access to the
function tables through the API.
----- Original Message -----
From:
To: "Csound Developers Discussion List"
Sent: Wednesday, September 29, 2004 9:45 PM
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
> > >
> > >
> > >
> >
> >
>
>
>
> |