Csound Csound-dev Csound-tekno Search About

Using Python and Csound -- a newb question

Date2016-05-31 20:34
FromBrian Merchant
SubjectUsing Python and Csound -- a newb question
Hi all,


Instead of writing in the Csound language, I want to write in the Python language -- that is, execute a python script, which calls the Csound backend and thus produces sounds.

Does it make sense to use Python with Csound in this way? If yes, are there already such Python implementations, or would I have to make one?

Kind regards,
Brian



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-05-31 21:04
FromRichard
SubjectRe: Using Python and Csound -- a newb question

Hi Brian,

That makes a lot of sense. In this article I explain how to use Python to create sounds and scores with Csound in Blue.
Of course this concept is not limited to be used in Blue. It might give you some clues.

http://csoundjournal.com/issue19/python_in_blue.html

There is also a pure Python solution (without Csound), that is called Pyo....but Csound has a lot more to offer.


Richard
On 31/05/16 21:34, Brian Merchant wrote:
Hi all,


Instead of writing in the Csound language, I want to write in the Python language -- that is, execute a python script, which calls the Csound backend and thus produces sounds.

Does it make sense to use Python with Csound in this way? If yes, are there already such Python implementations, or would I have to make one?

Kind regards,
Brian



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-05-31 21:05
FromLinda Antas
SubjectRe: Using Python and Csound -- a newb question
Hey Brian,  
   Check out Chapter 12 of the Floss manual:


    Here's a video I saved and haven't watched yet. Perhaps outdated, list?
https://www.youtube.com/watch?v=avsxCZNHEwM

~L.

On Tue, May 31, 2016 at 1:34 PM, Brian Merchant <bhmerchant@gmail.com> wrote:
Hi all,


Instead of writing in the Csound language, I want to write in the Python language -- that is, execute a python script, which calls the Csound backend and thus produces sounds.

Does it make sense to use Python with Csound in this way? If yes, are there already such Python implementations, or would I have to make one?

Kind regards,
Brian



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-05-31 21:55
FromRichard
SubjectRe: Using Python and Csound -- a newb question

These video's are quite good and mysterious! I've never seen them. Whoever is behind them did a good job at hiding his/her identity...
The robotic voice....

Amazing.

Richard


On 31/05/16 22:05, Linda Antas wrote:
Hey Brian,  
   Check out Chapter 12 of the Floss manual:


    Here's a video I saved and haven't watched yet. Perhaps outdated, list?
https://www.youtube.com/watch?v=avsxCZNHEwM

~L.

On Tue, May 31, 2016 at 1:34 PM, Brian Merchant <bhmerchant@gmail.com> wrote:
Hi all,


Instead of writing in the Csound language, I want to write in the Python language -- that is, execute a python script, which calls the Csound backend and thus produces sounds.

Does it make sense to use Python with Csound in this way? If yes, are there already such Python implementations, or would I have to make one?

Kind regards,
Brian



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-05-31 22:03
FromOlivier Bélanger
SubjectRe: Using Python and Csound -- a newb question
Hi,

Pyo does not have as many objects as there is csound opcodes (though
it's quite complete) but you can write much more natural and dynamic
python code with it!

Olivier


On Tue, May 31, 2016 at 4:04 PM, Richard  wrote:
> Hi Brian,
>
> That makes a lot of sense. In this article I explain how to use Python to
> create sounds and scores with Csound in Blue.
> Of course this concept is not limited to be used in Blue. It might give you
> some clues.
>
> http://csoundjournal.com/issue19/python_in_blue.html
>
> There is also a pure Python solution (without Csound), that is called
> Pyo....but Csound has a lot more to offer.
>
>
> Richard
>
> On 31/05/16 21:34, Brian Merchant wrote:
>
> Hi all,
>
>
> Instead of writing in the Csound language, I want to write in the Python
> language -- that is, execute a python script, which calls the Csound backend
> and thus produces sounds.
>
> Does it make sense to use Python with Csound in this way? If yes, are there
> already such Python implementations, or would I have to make one?
>
> Kind regards,
> Brian
>
>
>
> 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-06-01 19:37
FromBrian Merchant
SubjectRe: Using Python and Csound -- a newb question
Hi Olivier,

Why did you decide to develop Pyo instead of building a Python wrapper around Csound?

(thanks for the other Python related links, list! I have to digest them now)


On Tue, May 31, 2016 at 2:03 PM, Olivier Bélanger <belangeo@gmail.com> wrote:
Hi,

Pyo does not have as many objects as there is csound opcodes (though
it's quite complete) but you can write much more natural and dynamic
python code with it!

Olivier


On Tue, May 31, 2016 at 4:04 PM, Richard <zappfinger@gmail.com> wrote:
> Hi Brian,
>
> That makes a lot of sense. In this article I explain how to use Python to
> create sounds and scores with Csound in Blue.
> Of course this concept is not limited to be used in Blue. It might give you
> some clues.
>
> http://csoundjournal.com/issue19/python_in_blue.html
>
> There is also a pure Python solution (without Csound), that is called
> Pyo....but Csound has a lot more to offer.
>
>
> Richard
>
> On 31/05/16 21:34, Brian Merchant wrote:
>
> Hi all,
>
>
> Instead of writing in the Csound language, I want to write in the Python
> language -- that is, execute a python script, which calls the Csound backend
> and thus produces sounds.
>
> Does it make sense to use Python with Csound in this way? If yes, are there
> already such Python implementations, or would I have to make one?
>
> Kind regards,
> Brian
>
>
>
> 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

Date2016-06-01 20:32
FromOlivier Bélanger
SubjectRe: Using Python and Csound -- a newb question
Hi Brian,

I did! I wrote Ounk before pyo. It's not a truly a python wrapper but
a scripting environment for music composition.

https://code.google.com/archive/p/ounk/

I begin to develop pyo because I needed a native audio engine (sharing
the same syntax, OOP paradigm, etc.) for my python apps.

Ounk did not use the api and last time I checked, it still works!

Olivier


On Wed, Jun 1, 2016 at 2:37 PM, Brian Merchant  wrote:
> Hi Olivier,
>
> Why did you decide to develop Pyo instead of building a Python wrapper
> around Csound?
>
> (thanks for the other Python related links, list! I have to digest them now)
>
>
> On Tue, May 31, 2016 at 2:03 PM, Olivier Bélanger 
> wrote:
>>
>> Hi,
>>
>> Pyo does not have as many objects as there is csound opcodes (though
>> it's quite complete) but you can write much more natural and dynamic
>> python code with it!
>>
>> Olivier
>>
>>
>> On Tue, May 31, 2016 at 4:04 PM, Richard  wrote:
>> > Hi Brian,
>> >
>> > That makes a lot of sense. In this article I explain how to use Python
>> > to
>> > create sounds and scores with Csound in Blue.
>> > Of course this concept is not limited to be used in Blue. It might give
>> > you
>> > some clues.
>> >
>> > http://csoundjournal.com/issue19/python_in_blue.html
>> >
>> > There is also a pure Python solution (without Csound), that is called
>> > Pyo....but Csound has a lot more to offer.
>> >
>> >
>> > Richard
>> >
>> > On 31/05/16 21:34, Brian Merchant wrote:
>> >
>> > Hi all,
>> >
>> >
>> > Instead of writing in the Csound language, I want to write in the Python
>> > language -- that is, execute a python script, which calls the Csound
>> > backend
>> > and thus produces sounds.
>> >
>> > Does it make sense to use Python with Csound in this way? If yes, are
>> > there
>> > already such Python implementations, or would I have to make one?
>> >
>> > Kind regards,
>> > Brian
>> >
>> >
>> >
>> > 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

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