Csound Csound-dev Csound-tekno Search About

[Csnd] Getting started with Python and Csound...

Date2009-05-22 17:00
Fromapalomba
Subject[Csnd] Getting started with Python and Csound...
Up to this point, I have been getting along fine with writing 
.csd files. But it seems like a lot of people are using python + the 
csound API. I figure it is something I should investigate. 
(I am ignoring Haskell for now...)

My goal is to develop a composition prototyping environment that 
allows me to design gestures and explore computational mappings of music 
parameters. 

Can someone point me to some python csound API examples
that can get me rolling? I am running Windows csound 5.10.
Is there some editor I can use to run python and csound?

I am new to python so any advice on how I would use it to 
achieve my goal would be appreciated.




Thanks,
Anthony 


-- 
View this message in context: http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p23673459.html
Sent from the Csound - General mailing list archive at Nabble.com.


Date2009-05-22 17:11
FromRory Walsh
Subject[Csnd] Re: Getting started with Python and Csound...
I don't use python but I know that Blue lets you seamlessly run python
and Csound together.

2009/5/22 apalomba :
>
> Up to this point, I have been getting along fine with writing
> .csd files. But it seems like a lot of people are using python + the
> csound API. I figure it is something I should investigate.
> (I am ignoring Haskell for now...)
>
> My goal is to develop a composition prototyping environment that
> allows me to design gestures and explore computational mappings of music
> parameters.
>
> Can someone point me to some python csound API examples
> that can get me rolling? I am running Windows csound 5.10.
> Is there some editor I can use to run python and csound?
>
> I am new to python so any advice on how I would use it to
> achieve my goal would be appreciated.
>
>
>
>
> Thanks,
> Anthony
>
>
> --
> View this message in context: http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p23673459.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>

Date2009-05-22 18:49
Fromfrancibal
Subject[Csnd] Re: Getting started with Python and Csound...
I'm only a beginner,
but i use python and csound, both via scite editor. I started with csound 
tutorial
by Mr. Gogins, that is in csound distribution. There you can find 
necessary info for start. Hope useful.

ciao,
fran




apalomba wrote:
> 
> Up to this point, I have been getting along fine with writing 
> .csd files. But it seems like a lot of people are using python + the 
> csound API. I figure it is something I should investigate. 
> (I am ignoring Haskell for now...)
> 
> My goal is to develop a composition prototyping environment that 
> allows me to design gestures and explore computational mappings of music 
> parameters. 
> 
> Can someone point me to some python csound API examples
> that can get me rolling? I am running Windows csound 5.10.
> Is there some editor I can use to run python and csound?
> 
> I am new to python so any advice on how I would use it to 
> achieve my goal would be appreciated.
> 
> 
> 
> 
> Thanks,
> Anthony 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p23675232.html
Sent from the Csound - General mailing list archive at Nabble.com.


Date2009-05-25 00:53
From"Anthony Palomba"
Subject[Csnd] Re: Re: Getting started with Python and Csound...
Well after the big Haskell debate, I was under the impression
that there were lots of people who used python and csound.

Surely there has to be someone out there that can give
me some guidance on using python and csound...



Anthony


----- Original Message ----- 
From: "Rory Walsh" 
To: 
Sent: Friday, May 22, 2009 11:11 AM
Subject: [Csnd] Re: Getting started with Python and Csound...


>I don't use python but I know that Blue lets you seamlessly run python
> and Csound together.
>
> 2009/5/22 apalomba :
>>
>> Up to this point, I have been getting along fine with writing
>> .csd files. But it seems like a lot of people are using python + the
>> csound API. I figure it is something I should investigate.
>> (I am ignoring Haskell for now...)
>>
>> My goal is to develop a composition prototyping environment that
>> allows me to design gestures and explore computational mappings of music
>> parameters.
>>
>> Can someone point me to some python csound API examples
>> that can get me rolling? I am running Windows csound 5.10.
>> Is there some editor I can use to run python and csound?
>>
>> I am new to python so any advice on how I would use it to
>> achieve my goal would be appreciated.
>>
>>
>>
>>
>> Thanks,
>> Anthony
>>
>>
>> --
>> View this message in context: 
>> http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p23673459.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
>> csound"
>>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 


Date2009-05-25 01:11
From"Hans Mikelson"
Subject[Csnd] Re: Getting started with Python and Csound...
It's been a while since I used Python with Csound but there are a couple of
tutorials that come with python to get you started with the language.  I
would use a score generating algorithm typically that would act like the
granular generator but with more control.

A simple example would be to create a sine oscillator instrument where you
pass the amplitude an pitch parameters from the score and then have python
generate a bunch of i-statements based on the random number generators and
vary the start time, duration, pitch and amplitude over a variety of random
ranges.  This should be a fairly easy way to get started with Python.

You can either have the output displayed to the screen or learn how to write
it to a file.  Then copy it with a text editor into a csd or sco file.

Go to the Python documentation and work through the tutorial (start here).
Pay attention about how to import packages.  The package you will want to
import is the random number generator package.

Good luck,
Hans Mikelson

-----Original Message-----
From: Anthony Palomba [mailto:apalomba@austin.rr.com] 
Sent: Sunday, May 24, 2009 6:53 PM
To: csound@lists.bath.ac.uk
Subject: [Csnd] Re: Re: Getting started with Python and Csound...

Well after the big Haskell debate, I was under the impression
that there were lots of people who used python and csound.

Surely there has to be someone out there that can give
me some guidance on using python and csound...



Anthony


----- Original Message ----- 
From: "Rory Walsh" 
To: 
Sent: Friday, May 22, 2009 11:11 AM
Subject: [Csnd] Re: Getting started with Python and Csound...


>I don't use python but I know that Blue lets you seamlessly run python
> and Csound together.
>
> 2009/5/22 apalomba :
>>
>> Up to this point, I have been getting along fine with writing
>> .csd files. But it seems like a lot of people are using python + the
>> csound API. I figure it is something I should investigate.
>> (I am ignoring Haskell for now...)
>>
>> My goal is to develop a composition prototyping environment that
>> allows me to design gestures and explore computational mappings of music
>> parameters.
>>
>> Can someone point me to some python csound API examples
>> that can get me rolling? I am running Windows csound 5.10.
>> Is there some editor I can use to run python and csound?
>>
>> I am new to python so any advice on how I would use it to
>> achieve my goal would be appreciated.
>>
>>
>>
>>
>> Thanks,
>> Anthony
>>
>>
>> --
>> View this message in context: 
>>
http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p2
3673459.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
>> csound"
>>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"



Date2009-05-25 03:02
From"Hans Mikelson"
Subject[Csnd] A Murder of Crows
Attachmentscrows.csd  birds.xls  
In this example I was trying to create the sound of crows using FOF
synthesis.  I used the Excel file to create two random clouds of crows
clustered about a certain radius distance from the listener.

Hans Mikelson

Date2009-05-25 03:10
FromMichael Gogins
Subject[Csnd] Re: Re: Getting started with Python and Csound...
I use Python with Csound to make almost all of my compositions.

If you are on Windows, the Windows installers for Csound include a
number of Python compositions in the examples directory. If you are
not on Windows, you can download these pieces using CVS, or view the
code online via the Csound SourceForge repository browser.

There are beginning instructions for using Python with Csound in "A
Csound Tutorial," which can be viewed online at Csounds.com, and is
also included in the Windows installers.

CsoundAC, which is now part of Csound, stands for Csound Algorithmic
Composition and provides facilities for score generation and
algorithmic composition in Python that are comparable in some respects
to Common Music, although the underlying represention of music is
borrowed from scene graphs in 3-dimensional computer graphics
modeling.

I might be able to be more helpful if you could give me more concrete
examples of what you would like to do. Do you wish to generate scores
in Python then render them with Csound (which is what I do), or do you
wish to embed Python code in Csound orchestras, or do you wish to
create interactive compositions with graphical user interfaces, or do
you wish to read in data from photos or star charts or fractals or
whatever and translate that data into scores that you will render
using Csound (which I also do), or what?

Hope this helps,
Mike

On 5/24/09, Hans Mikelson  wrote:
>
> It's been a while since I used Python with Csound but there are a couple of
> tutorials that come with python to get you started with the language.  I
> would use a score generating algorithm typically that would act like the
> granular generator but with more control.
>
> A simple example would be to create a sine oscillator instrument where you
> pass the amplitude an pitch parameters from the score and then have python
> generate a bunch of i-statements based on the random number generators and
> vary the start time, duration, pitch and amplitude over a variety of random
> ranges.  This should be a fairly easy way to get started with Python.
>
> You can either have the output displayed to the screen or learn how to write
> it to a file.  Then copy it with a text editor into a csd or sco file.
>
> Go to the Python documentation and work through the tutorial (start here).
> Pay attention about how to import packages.  The package you will want to
> import is the random number generator package.
>
> Good luck,
> Hans Mikelson
>
> -----Original Message-----
> From: Anthony Palomba [mailto:apalomba@austin.rr.com]
> Sent: Sunday, May 24, 2009 6:53 PM
> To: csound@lists.bath.ac.uk
> Subject: [Csnd] Re: Re: Getting started with Python and Csound...
>
> Well after the big Haskell debate, I was under the impression
> that there were lots of people who used python and csound.
>
> Surely there has to be someone out there that can give
> me some guidance on using python and csound...
>
>
>
> Anthony
>
>
> ----- Original Message -----
> From: "Rory Walsh" 
> To: 
> Sent: Friday, May 22, 2009 11:11 AM
> Subject: [Csnd] Re: Getting started with Python and Csound...
>
>
>>I don't use python but I know that Blue lets you seamlessly run python
>> and Csound together.
>>
>> 2009/5/22 apalomba :
>>>
>>> Up to this point, I have been getting along fine with writing
>>> .csd files. But it seems like a lot of people are using python + the
>>> csound API. I figure it is something I should investigate.
>>> (I am ignoring Haskell for now...)
>>>
>>> My goal is to develop a composition prototyping environment that
>>> allows me to design gestures and explore computational mappings of music
>>> parameters.
>>>
>>> Can someone point me to some python csound API examples
>>> that can get me rolling? I am running Windows csound 5.10.
>>> Is there some editor I can use to run python and csound?
>>>
>>> I am new to python so any advice on how I would use it to
>>> achieve my goal would be appreciated.
>>>
>>>
>>>
>>>
>>> Thanks,
>>> Anthony
>>>
>>>
>>> --
>>> View this message in context:
>>>
> http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p2
> 3673459.html
>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>


-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

Date2009-05-25 03:13
From"Hans Mikelson"
Subject[Csnd] Takin' it to the Streets
Hi,

We have an open mic in town and I recently loaded up an MPC 500 with a bunch
of ambient and granular samples created mostly using Csound and brought it
to the open mic for a show.  There was some scattered applause.  I'm going
to try adding some electronica (drum machine) and Theremin next week.
Eau Claire, WI Stone's Throw 11 PM Wed.

Is anyone using MPC or samplers to bring Csound to their live shows?

Hans Mikelson



Date2009-05-25 07:36
Fromvictor
Subject[Csnd] Re: A Murder of Crows
Very good.
----- Original Message ----- 
From: "Hans Mikelson" 
To: 
Sent: Monday, May 25, 2009 3:02 AM
Subject: [Csnd] A Murder of Crows


> In this example I was trying to create the sound of crows using FOF
> synthesis.  I used the Excel file to create two random clouds of crows
> clustered about a certain radius distance from the listener.
>
> Hans Mikelson
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 


Date2009-05-25 08:29
FromOeyvind Brandtsegg
Subject[Csnd] Re: Takin' it to the Streets
I used to use hardware samplers for live work some (10) years ago, but
now I feel it's just as easy (and stable) to use the laptop and play
directly from Csound.
Nice crow sound btw. ;-)
all best
Oeyvind


2009/5/25 Hans Mikelson :
> Hi,
>
> We have an open mic in town and I recently loaded up an MPC 500 with a bunch
> of ambient and granular samples created mostly using Csound and brought it
> to the open mic for a show.  There was some scattered applause.  I'm going
> to try adding some electronica (drum machine) and Theremin next week.
> Eau Claire, WI Stone's Throw 11 PM Wed.
>
> Is anyone using MPC or samplers to bring Csound to their live shows?
>
> Hans Mikelson
>
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>


Date2009-05-25 08:38
FromBrian Redfern
Subject[Csnd] Re: Re: Takin' it to the Streets
I use a line6 looper pedal where I can load in tracks I make with
csound and then loop live electric oud and maui xaphone over it.

On Mon, May 25, 2009 at 12:29 AM, Oeyvind Brandtsegg  wrote:
> I used to use hardware samplers for live work some (10) years ago, but
> now I feel it's just as easy (and stable) to use the laptop and play
> directly from Csound.
> Nice crow sound btw. ;-)
> all best
> Oeyvind
>
>
> 2009/5/25 Hans Mikelson :
>> Hi,
>>
>> We have an open mic in town and I recently loaded up an MPC 500 with a bunch
>> of ambient and granular samples created mostly using Csound and brought it
>> to the open mic for a show.  There was some scattered applause.  I'm going
>> to try adding some electronica (drum machine) and Theremin next week.
>> Eau Claire, WI Stone's Throw 11 PM Wed.
>>
>> Is anyone using MPC or samplers to bring Csound to their live shows?
>>
>> Hans Mikelson
>>
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2009-05-25 13:58
FromAndres Cabrera
Subject[Csnd] Re: Re: Re: Getting started with Python and Csound...
Hi,

Also note that you can use Csound inside python using the Csound API,
to control playback and send events from python to Csound, but you can
also use Python inside Csound using the python opcodes.
See my article in the journal about this:
http://www.csounds.com/journal/issue6/


Cheers,
Andrés

On Sun, May 24, 2009 at 6:53 PM, Anthony Palomba  wrote:
> Well after the big Haskell debate, I was under the impression
> that there were lots of people who used python and csound.
>
> Surely there has to be someone out there that can give
> me some guidance on using python and csound...
>
>
>
> Anthony
>
>
> ----- Original Message ----- From: "Rory Walsh" 
> To: 
> Sent: Friday, May 22, 2009 11:11 AM
> Subject: [Csnd] Re: Getting started with Python and Csound...
>
>
>> I don't use python but I know that Blue lets you seamlessly run python
>> and Csound together.
>>
>> 2009/5/22 apalomba :
>>>
>>> Up to this point, I have been getting along fine with writing
>>> .csd files. But it seems like a lot of people are using python + the
>>> csound API. I figure it is something I should investigate.
>>> (I am ignoring Haskell for now...)
>>>
>>> My goal is to develop a composition prototyping environment that
>>> allows me to design gestures and explore computational mappings of music
>>> parameters.
>>>
>>> Can someone point me to some python csound API examples
>>> that can get me rolling? I am running Windows csound 5.10.
>>> Is there some editor I can use to run python and csound?
>>>
>>> I am new to python so any advice on how I would use it to
>>> achieve my goal would be appreciated.
>>>
>>>
>>>
>>>
>>> Thanks,
>>> Anthony
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p23673459.html
>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>



-- 


Andrés


Date2009-05-26 17:52
From
Subject[Csnd] Re: Re: Re: Getting started with Python and Csound...
Hey Michael, thank you for your response.

Using python to create scores would be interesting.
I had not thought of creating a UI to do something
like that. Does python have a way you can create
user interfaces?

What I am really looking to do is to be able
to use python and the csound API to call
csound opcodes. Ideally I would like to create 
an environment similar to Common Music. 




Anthony



---- Michael Gogins  wrote: 
> I use Python with Csound to make almost all of my compositions.
> 
> If you are on Windows, the Windows installers for Csound include a
> number of Python compositions in the examples directory. If you are
> not on Windows, you can download these pieces using CVS, or view the
> code online via the Csound SourceForge repository browser.
> 
> There are beginning instructions for using Python with Csound in "A
> Csound Tutorial," which can be viewed online at Csounds.com, and is
> also included in the Windows installers.
> 
> CsoundAC, which is now part of Csound, stands for Csound Algorithmic
> Composition and provides facilities for score generation and
> algorithmic composition in Python that are comparable in some respects
> to Common Music, although the underlying represention of music is
> borrowed from scene graphs in 3-dimensional computer graphics
> modeling.
> 
> I might be able to be more helpful if you could give me more concrete
> examples of what you would like to do. Do you wish to generate scores
> in Python then render them with Csound (which is what I do), or do you
> wish to embed Python code in Csound orchestras, or do you wish to
> create interactive compositions with graphical user interfaces, or do
> you wish to read in data from photos or star charts or fractals or
> whatever and translate that data into scores that you will render
> using Csound (which I also do), or what?
> 
> Hope this helps,
> Mike
> 
> On 5/24/09, Hans Mikelson  wrote:
> >
> > It's been a while since I used Python with Csound but there are a couple of
> > tutorials that come with python to get you started with the language.  I
> > would use a score generating algorithm typically that would act like the
> > granular generator but with more control.
> >
> > A simple example would be to create a sine oscillator instrument where you
> > pass the amplitude an pitch parameters from the score and then have python
> > generate a bunch of i-statements based on the random number generators and
> > vary the start time, duration, pitch and amplitude over a variety of random
> > ranges.  This should be a fairly easy way to get started with Python.
> >
> > You can either have the output displayed to the screen or learn how to write
> > it to a file.  Then copy it with a text editor into a csd or sco file.
> >
> > Go to the Python documentation and work through the tutorial (start here).
> > Pay attention about how to import packages.  The package you will want to
> > import is the random number generator package.
> >
> > Good luck,
> > Hans Mikelson
> >
> > -----Original Message-----
> > From: Anthony Palomba [mailto:apalomba@austin.rr.com]
> > Sent: Sunday, May 24, 2009 6:53 PM
> > To: csound@lists.bath.ac.uk
> > Subject: [Csnd] Re: Re: Getting started with Python and Csound...
> >
> > Well after the big Haskell debate, I was under the impression
> > that there were lots of people who used python and csound.
> >
> > Surely there has to be someone out there that can give
> > me some guidance on using python and csound...
> >
> >
> >
> > Anthony
> >
> >
> > ----- Original Message -----
> > From: "Rory Walsh" 
> > To: 
> > Sent: Friday, May 22, 2009 11:11 AM
> > Subject: [Csnd] Re: Getting started with Python and Csound...
> >
> >
> >>I don't use python but I know that Blue lets you seamlessly run python
> >> and Csound together.
> >>
> >> 2009/5/22 apalomba :
> >>>
> >>> Up to this point, I have been getting along fine with writing
> >>> .csd files. But it seems like a lot of people are using python + the
> >>> csound API. I figure it is something I should investigate.
> >>> (I am ignoring Haskell for now...)
> >>>
> >>> My goal is to develop a composition prototyping environment that
> >>> allows me to design gestures and explore computational mappings of music
> >>> parameters.
> >>>
> >>> Can someone point me to some python csound API examples
> >>> that can get me rolling? I am running Windows csound 5.10.
> >>> Is there some editor I can use to run python and csound?
> >>>
> >>> I am new to python so any advice on how I would use it to
> >>> achieve my goal would be appreciated.
> >>>
> >>>
> >>>
> >>>
> >>> Thanks,
> >>> Anthony
> >>>
> >>>
> >>> --
> >>> View this message in context:
> >>>
> > http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p2
> > 3673459.html
> >>> Sent from the Csound - General mailing list archive at Nabble.com.
> >>>
> >>>
> >>>
> >>> Send bugs reports to this list.
> >>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> >>> csound"
> >>>
> >>
> >>
> >> Send bugs reports to this list.
> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> >> csound"
> >
> >
> >
> > Send bugs reports to this list.
> > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> > csound"
> >
> >
> >
> >
> > Send bugs reports to this list.
> > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> > csound"
> >
> 
> 
> -- 
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
> 
> 
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-05-26 18:49
Fromvictor
Subject[Csnd] Re: Re: Re: Re: Getting started with Python and Csound...
There are python bindings for various UI toolkits (wxWindows,
GTK, Tk etc). TkInter is the one that normally comes with
Python and is pretty intuitive if sometimes basic.

Victor
----- Original Message ----- 
From: 
To: 
Cc: "Michael Gogins" 
Sent: Tuesday, May 26, 2009 5:52 PM
Subject: [Csnd] Re: Re: Re: Getting started with Python and Csound...


> Hey Michael, thank you for your response.
>
> Using python to create scores would be interesting.
> I had not thought of creating a UI to do something
> like that. Does python have a way you can create
> user interfaces?
>
> What I am really looking to do is to be able
> to use python and the csound API to call
> csound opcodes. Ideally I would like to create
> an environment similar to Common Music.
>
>
>
>
> Anthony
>
>
>
> ---- Michael Gogins  wrote:
>> I use Python with Csound to make almost all of my compositions.
>>
>> If you are on Windows, the Windows installers for Csound include a
>> number of Python compositions in the examples directory. If you are
>> not on Windows, you can download these pieces using CVS, or view the
>> code online via the Csound SourceForge repository browser.
>>
>> There are beginning instructions for using Python with Csound in "A
>> Csound Tutorial," which can be viewed online at Csounds.com, and is
>> also included in the Windows installers.
>>
>> CsoundAC, which is now part of Csound, stands for Csound Algorithmic
>> Composition and provides facilities for score generation and
>> algorithmic composition in Python that are comparable in some respects
>> to Common Music, although the underlying represention of music is
>> borrowed from scene graphs in 3-dimensional computer graphics
>> modeling.
>>
>> I might be able to be more helpful if you could give me more concrete
>> examples of what you would like to do. Do you wish to generate scores
>> in Python then render them with Csound (which is what I do), or do you
>> wish to embed Python code in Csound orchestras, or do you wish to
>> create interactive compositions with graphical user interfaces, or do
>> you wish to read in data from photos or star charts or fractals or
>> whatever and translate that data into scores that you will render
>> using Csound (which I also do), or what?
>>
>> Hope this helps,
>> Mike
>>
>> On 5/24/09, Hans Mikelson  wrote:
>> >
>> > It's been a while since I used Python with Csound but there are a 
>> > couple of
>> > tutorials that come with python to get you started with the language. 
>> > I
>> > would use a score generating algorithm typically that would act like 
>> > the
>> > granular generator but with more control.
>> >
>> > A simple example would be to create a sine oscillator instrument where 
>> > you
>> > pass the amplitude an pitch parameters from the score and then have 
>> > python
>> > generate a bunch of i-statements based on the random number generators 
>> > and
>> > vary the start time, duration, pitch and amplitude over a variety of 
>> > random
>> > ranges.  This should be a fairly easy way to get started with Python.
>> >
>> > You can either have the output displayed to the screen or learn how to 
>> > write
>> > it to a file.  Then copy it with a text editor into a csd or sco file.
>> >
>> > Go to the Python documentation and work through the tutorial (start 
>> > here).
>> > Pay attention about how to import packages.  The package you will want 
>> > to
>> > import is the random number generator package.
>> >
>> > Good luck,
>> > Hans Mikelson
>> >
>> > -----Original Message-----
>> > From: Anthony Palomba [mailto:apalomba@austin.rr.com]
>> > Sent: Sunday, May 24, 2009 6:53 PM
>> > To: csound@lists.bath.ac.uk
>> > Subject: [Csnd] Re: Re: Getting started with Python and Csound...
>> >
>> > Well after the big Haskell debate, I was under the impression
>> > that there were lots of people who used python and csound.
>> >
>> > Surely there has to be someone out there that can give
>> > me some guidance on using python and csound...
>> >
>> >
>> >
>> > Anthony
>> >
>> >
>> > ----- Original Message -----
>> > From: "Rory Walsh" 
>> > To: 
>> > Sent: Friday, May 22, 2009 11:11 AM
>> > Subject: [Csnd] Re: Getting started with Python and Csound...
>> >
>> >
>> >>I don't use python but I know that Blue lets you seamlessly run python
>> >> and Csound together.
>> >>
>> >> 2009/5/22 apalomba :
>> >>>
>> >>> Up to this point, I have been getting along fine with writing
>> >>> .csd files. But it seems like a lot of people are using python + the
>> >>> csound API. I figure it is something I should investigate.
>> >>> (I am ignoring Haskell for now...)
>> >>>
>> >>> My goal is to develop a composition prototyping environment that
>> >>> allows me to design gestures and explore computational mappings of 
>> >>> music
>> >>> parameters.
>> >>>
>> >>> Can someone point me to some python csound API examples
>> >>> that can get me rolling? I am running Windows csound 5.10.
>> >>> Is there some editor I can use to run python and csound?
>> >>>
>> >>> I am new to python so any advice on how I would use it to
>> >>> achieve my goal would be appreciated.
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> Thanks,
>> >>> Anthony
>> >>>
>> >>>
>> >>> --
>> >>> View this message in context:
>> >>>
>> > http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p2
>> > 3673459.html
>> >>> Sent from the Csound - General mailing list archive at Nabble.com.
>> >>>
>> >>>
>> >>>
>> >>> Send bugs reports to this list.
>> >>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>> >>> "unsubscribe
>> >>> csound"
>> >>>
>> >>
>> >>
>> >> Send bugs reports to this list.
>> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>> >> "unsubscribe
>> >> csound"
>> >
>> >
>> >
>> > Send bugs reports to this list.
>> > To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>> > "unsubscribe
>> > csound"
>> >
>> >
>> >
>> >
>> > Send bugs reports to this list.
>> > To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>> > "unsubscribe
>> > csound"
>> >
>>
>>
>> -- 
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
>> csound"
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 


Date2009-05-26 19:31
From
Subject[Csnd] Re: Re: Re: Re: Getting started with Python and Csound...
"Also note that you can use Csound inside python using the Csound API, 
to control playback and send events from python to Csound"


Yes, that is exactly what I want to do. I will definitely look at the 
article, thanks Andres.




Anthony




---- Andres Cabrera  wrote: 
> Hi,

Also note that you can use Csound inside python using the Csound API,
to control playback and send events from python to Csound, but you can
also use Python inside Csound using the python opcodes.
See my article in the journal about this:
http://www.csounds.com/journal/issue6/


Cheers,
Andrés

On Sun, May 24, 2009 at 6:53 PM, Anthony Palomba  wrote:
> Well after the big Haskell debate, I was under the impression
> that there were lots of people who used python and csound.
>
> Surely there has to be someone out there that can give
> me some guidance on using python and csound...
>
>
>
> Anthony
>
>
> ----- Original Message ----- From: "Rory Walsh" 
> To: 
> Sent: Friday, May 22, 2009 11:11 AM
> Subject: [Csnd] Re: Getting started with Python and Csound...
>
>
>> I don't use python but I know that Blue lets you seamlessly run python
>> and Csound together.
>>
>> 2009/5/22 apalomba :
>>>
>>> Up to this point, I have been getting along fine with writing
>>> .csd files. But it seems like a lot of people are using python + the
>>> csound API. I figure it is something I should investigate.
>>> (I am ignoring Haskell for now...)
>>>
>>> My goal is to develop a composition prototyping environment that
>>> allows me to design gestures and explore computational mappings of music
>>> parameters.
>>>
>>> Can someone point me to some python csound API examples
>>> that can get me rolling? I am running Windows csound 5.10.
>>> Is there some editor I can use to run python and csound?
>>>
>>> I am new to python so any advice on how I would use it to
>>> achieve my goal would be appreciated.
>>>
>>>
>>>
>>>
>>> Thanks,
>>> Anthony
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p23673459.html
>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>



-- 


Andrés


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2009-05-28 15:42
From
Subject[Csnd] Re: Re: Re: Getting started with Python and Csound...
"CsoundAC, which is now part of Csound, stands for Csound Algorithmic 
Composition and provides facilities for score generation and 
algorithmic composition in Python that are comparable in some respects 
to Common Music, although the underlying representation of music is 
borrowed from scene graphs in 3-dimensional computer graphics 
modeling."


Hey Michael,

This is exactly what I was looking for. I took a look at the csound/python
tutorial that you mentioned. I think I have the basics down. 

I also looked at CsoundAC.py, it has a lot of stuff in it! Is there any 
documentation that explains what functions it supports. Also is there 
any documentation or tutorials that explain this scene graph representation
of compositions.



Thanks,
Anthony



---- Michael Gogins  wrote: 
> I use Python with Csound to make almost all of my compositions.
> 
> If you are on Windows, the Windows installers for Csound include a
> number of Python compositions in the examples directory. If you are
> not on Windows, you can download these pieces using CVS, or view the
> code online via the Csound SourceForge repository browser.
> 
> There are beginning instructions for using Python with Csound in "A
> Csound Tutorial," which can be viewed online at Csounds.com, and is
> also included in the Windows installers.
> 
> CsoundAC, which is now part of Csound, stands for Csound Algorithmic
> Composition and provides facilities for score generation and
> algorithmic composition in Python that are comparable in some respects
> to Common Music, although the underlying represention of music is
> borrowed from scene graphs in 3-dimensional computer graphics
> modeling.
> 
> I might be able to be more helpful if you could give me more concrete
> examples of what you would like to do. Do you wish to generate scores
> in Python then render them with Csound (which is what I do), or do you
> wish to embed Python code in Csound orchestras, or do you wish to
> create interactive compositions with graphical user interfaces, or do
> you wish to read in data from photos or star charts or fractals or
> whatever and translate that data into scores that you will render
> using Csound (which I also do), or what?
> 
> Hope this helps,
> Mike
> 
> On 5/24/09, Hans Mikelson  wrote:
> >
> > It's been a while since I used Python with Csound but there are a couple of
> > tutorials that come with python to get you started with the language.  I
> > would use a score generating algorithm typically that would act like the
> > granular generator but with more control.
> >
> > A simple example would be to create a sine oscillator instrument where you
> > pass the amplitude an pitch parameters from the score and then have python
> > generate a bunch of i-statements based on the random number generators and
> > vary the start time, duration, pitch and amplitude over a variety of random
> > ranges.  This should be a fairly easy way to get started with Python.
> >
> > You can either have the output displayed to the screen or learn how to write
> > it to a file.  Then copy it with a text editor into a csd or sco file.
> >
> > Go to the Python documentation and work through the tutorial (start here).
> > Pay attention about how to import packages.  The package you will want to
> > import is the random number generator package.
> >
> > Good luck,
> > Hans Mikelson
> >
> > -----Original Message-----
> > From: Anthony Palomba [mailto:apalomba@austin.rr.com]
> > Sent: Sunday, May 24, 2009 6:53 PM
> > To: csound@lists.bath.ac.uk
> > Subject: [Csnd] Re: Re: Getting started with Python and Csound...
> >
> > Well after the big Haskell debate, I was under the impression
> > that there were lots of people who used python and csound.
> >
> > Surely there has to be someone out there that can give
> > me some guidance on using python and csound...
> >
> >
> >
> > Anthony
> >
> >
> > ----- Original Message -----
> > From: "Rory Walsh" 
> > To: 
> > Sent: Friday, May 22, 2009 11:11 AM
> > Subject: [Csnd] Re: Getting started with Python and Csound...
> >
> >
> >>I don't use python but I know that Blue lets you seamlessly run python
> >> and Csound together.
> >>
> >> 2009/5/22 apalomba :
> >>>
> >>> Up to this point, I have been getting along fine with writing
> >>> .csd files. But it seems like a lot of people are using python + the
> >>> csound API. I figure it is something I should investigate.
> >>> (I am ignoring Haskell for now...)
> >>>
> >>> My goal is to develop a composition prototyping environment that
> >>> allows me to design gestures and explore computational mappings of music
> >>> parameters.
> >>>
> >>> Can someone point me to some python csound API examples
> >>> that can get me rolling? I am running Windows csound 5.10.
> >>> Is there some editor I can use to run python and csound?
> >>>
> >>> I am new to python so any advice on how I would use it to
> >>> achieve my goal would be appreciated.
> >>>
> >>>
> >>>
> >>>
> >>> Thanks,
> >>> Anthony
> >>>
> >>>
> >>> --
> >>> View this message in context:
> >>>
> > http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p2
> > 3673459.html
> >>> Sent from the Csound - General mailing list archive at Nabble.com.
> >>>
> >>>
> >>>
> >>> Send bugs reports to this list.
> >>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> >>> csound"
> >>>
> >>
> >>
> >> Send bugs reports to this list.
> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> >> csound"
> >
> >
> >
> > Send bugs reports to this list.
> > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> > csound"
> >
> >
> >
> >
> > Send bugs reports to this list.
> > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> > csound"
> >
> 
> 
> -- 
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
> 
> 
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-05-28 19:28
FromChuckk Hubbard
Subject[Csnd] Re: Re: Re: Re: Re: Getting started with Python and Csound...
Tkinter is also not as cross-platform as it claims.  If you're using
Windows and just using it for your own work, though, it should be
fine.  There are some elements that aren't very well adapted to Macs.
I plan to use wxWidgets if/when I program GUIs in the future; it seems
to be less intuitive so far, but better assimilates various OS's
native APIs.

It's a tough question to answer, how to use Python and Csound, because
there's no end to the possibilities.

In addition to the tutorials, Anthony, I'd recommend looking at
csound.h (in H), CppSound.cpp/hpp (under interfaces) in the Csound
source code (am I missing any?); the comments in those files describe
all of the available functions for the API; they're listed for c++,
but translate directly to Python in most cases.  It could take some
time to let it all sink in, so don't give up if it doesn't make sense
at first.

-Chuckk

On Tue, May 26, 2009 at 8:49 PM, victor  wrote:
> There are python bindings for various UI toolkits (wxWindows,
> GTK, Tk etc). TkInter is the one that normally comes with
> Python and is pretty intuitive if sometimes basic.
>
> Victor
> ----- Original Message ----- From: 
> To: 
> Cc: "Michael Gogins" 
> Sent: Tuesday, May 26, 2009 5:52 PM
> Subject: [Csnd] Re: Re: Re: Getting started with Python and Csound...
>
>
>> Hey Michael, thank you for your response.
>>
>> Using python to create scores would be interesting.
>> I had not thought of creating a UI to do something
>> like that. Does python have a way you can create
>> user interfaces?
>>
>> What I am really looking to do is to be able
>> to use python and the csound API to call
>> csound opcodes. Ideally I would like to create
>> an environment similar to Common Music.
>>
>>
>>
>>
>> Anthony
>>
>>
>>
>> ---- Michael Gogins  wrote:
>>>
>>> I use Python with Csound to make almost all of my compositions.
>>>
>>> If you are on Windows, the Windows installers for Csound include a
>>> number of Python compositions in the examples directory. If you are
>>> not on Windows, you can download these pieces using CVS, or view the
>>> code online via the Csound SourceForge repository browser.
>>>
>>> There are beginning instructions for using Python with Csound in "A
>>> Csound Tutorial," which can be viewed online at Csounds.com, and is
>>> also included in the Windows installers.
>>>
>>> CsoundAC, which is now part of Csound, stands for Csound Algorithmic
>>> Composition and provides facilities for score generation and
>>> algorithmic composition in Python that are comparable in some respects
>>> to Common Music, although the underlying represention of music is
>>> borrowed from scene graphs in 3-dimensional computer graphics
>>> modeling.
>>>
>>> I might be able to be more helpful if you could give me more concrete
>>> examples of what you would like to do. Do you wish to generate scores
>>> in Python then render them with Csound (which is what I do), or do you
>>> wish to embed Python code in Csound orchestras, or do you wish to
>>> create interactive compositions with graphical user interfaces, or do
>>> you wish to read in data from photos or star charts or fractals or
>>> whatever and translate that data into scores that you will render
>>> using Csound (which I also do), or what?
>>>
>>> Hope this helps,
>>> Mike
>>>
>>> On 5/24/09, Hans Mikelson  wrote:
>>> >
>>> > It's been a while since I used Python with Csound but there are a >
>>> > couple of
>>> > tutorials that come with python to get you started with the language. >
>>> > I
>>> > would use a score generating algorithm typically that would act like >
>>> > the
>>> > granular generator but with more control.
>>> >
>>> > A simple example would be to create a sine oscillator instrument where
>>> > > you
>>> > pass the amplitude an pitch parameters from the score and then have >
>>> > python
>>> > generate a bunch of i-statements based on the random number generators
>>> > > and
>>> > vary the start time, duration, pitch and amplitude over a variety of >
>>> > random
>>> > ranges.  This should be a fairly easy way to get started with Python.
>>> >
>>> > You can either have the output displayed to the screen or learn how to
>>> > > write
>>> > it to a file.  Then copy it with a text editor into a csd or sco file.
>>> >
>>> > Go to the Python documentation and work through the tutorial (start >
>>> > here).
>>> > Pay attention about how to import packages.  The package you will want
>>> > > to
>>> > import is the random number generator package.
>>> >
>>> > Good luck,
>>> > Hans Mikelson
>>> >
>>> > -----Original Message-----
>>> > From: Anthony Palomba [mailto:apalomba@austin.rr.com]
>>> > Sent: Sunday, May 24, 2009 6:53 PM
>>> > To: csound@lists.bath.ac.uk
>>> > Subject: [Csnd] Re: Re: Getting started with Python and Csound...
>>> >
>>> > Well after the big Haskell debate, I was under the impression
>>> > that there were lots of people who used python and csound.
>>> >
>>> > Surely there has to be someone out there that can give
>>> > me some guidance on using python and csound...
>>> >
>>> >
>>> >
>>> > Anthony
>>> >
>>> >
>>> > ----- Original Message -----
>>> > From: "Rory Walsh" 
>>> > To: 
>>> > Sent: Friday, May 22, 2009 11:11 AM
>>> > Subject: [Csnd] Re: Getting started with Python and Csound...
>>> >
>>> >
>>> >>I don't use python but I know that Blue lets you seamlessly run python
>>> >> and Csound together.
>>> >>
>>> >> 2009/5/22 apalomba :
>>> >>>
>>> >>> Up to this point, I have been getting along fine with writing
>>> >>> .csd files. But it seems like a lot of people are using python + the
>>> >>> csound API. I figure it is something I should investigate.
>>> >>> (I am ignoring Haskell for now...)
>>> >>>
>>> >>> My goal is to develop a composition prototyping environment that
>>> >>> allows me to design gestures and explore computational mappings of
>>> >>> >>> music
>>> >>> parameters.
>>> >>>
>>> >>> Can someone point me to some python csound API examples
>>> >>> that can get me rolling? I am running Windows csound 5.10.
>>> >>> Is there some editor I can use to run python and csound?
>>> >>>
>>> >>> I am new to python so any advice on how I would use it to
>>> >>> achieve my goal would be appreciated.
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>> Thanks,
>>> >>> Anthony
>>> >>>
>>> >>>
>>> >>> --
>>> >>> View this message in context:
>>> >>>
>>> >
>>> > http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p2
>>> > 3673459.html
>>> >>> Sent from the Csound - General mailing list archive at Nabble.com.
>>> >>>
>>> >>>
>>> >>>
>>> >>> Send bugs reports to this list.
>>> >>> To unsubscribe, send email sympa@lists.bath.ac.uk with body >>>
>>> >>> "unsubscribe
>>> >>> csound"
>>> >>>
>>> >>
>>> >>
>>> >> Send bugs reports to this list.
>>> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body >>
>>> >> "unsubscribe
>>> >> csound"
>>> >
>>> >
>>> >
>>> > Send bugs reports to this list.
>>> > To unsubscribe, send email sympa@lists.bath.ac.uk with body >
>>> > "unsubscribe
>>> > csound"
>>> >
>>> >
>>> >
>>> >
>>> > Send bugs reports to this list.
>>> > To unsubscribe, send email sympa@lists.bath.ac.uk with body >
>>> > "unsubscribe
>>> > csound"
>>> >
>>>
>>>
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>



-- 
http://www.badmuthahubbard.com


Date2009-05-28 19:38
FromChuckk Hubbard
Subject[Csnd] Re: Re: Re: Re: Re: Getting started with Python and Csound...
Tkinter is also not as cross-platform as it claims.  If you're using
Windows and just using it for your own work, though, it should be
fine.  There are some elements that aren't very well adapted to Macs.
I plan to use wxWidgets if/when I program GUIs in the future; it seems
to be less intuitive so far, but better assimilates various OS's
native APIs.

It's a tough question to answer, how to use Python and Csound, because
there's no end to the possibilities.

In addition to the tutorials, Anthony, I'd recommend looking at
csound.h (in H), CppSound.cpp/hpp (under interfaces) in the Csound
source code (am I missing any?); the comments in those files describe
all of the available functions for the API; they're listed for c++,
but translate directly to Python in most cases.  It could take some
time to let it all sink in, so don't give up if it doesn't make sense
at first.

-Chuckk

On Tue, May 26, 2009 at 8:49 PM, victor  wrote:
> There are python bindings for various UI toolkits (wxWindows,
> GTK, Tk etc). TkInter is the one that normally comes with
> Python and is pretty intuitive if sometimes basic.
>
> Victor
> ----- Original Message ----- From: 
> To: 
> Cc: "Michael Gogins" 
> Sent: Tuesday, May 26, 2009 5:52 PM
> Subject: [Csnd] Re: Re: Re: Getting started with Python and Csound...
>
>
>> Hey Michael, thank you for your response.
>>
>> Using python to create scores would be interesting.
>> I had not thought of creating a UI to do something
>> like that. Does python have a way you can create
>> user interfaces?
>>
>> What I am really looking to do is to be able
>> to use python and the csound API to call
>> csound opcodes. Ideally I would like to create
>> an environment similar to Common Music.
>>
>>
>>
>>
>> Anthony
>>
>>
>>
>> ---- Michael Gogins  wrote:
>>>
>>> I use Python with Csound to make almost all of my compositions.
>>>
>>> If you are on Windows, the Windows installers for Csound include a
>>> number of Python compositions in the examples directory. If you are
>>> not on Windows, you can download these pieces using CVS, or view the
>>> code online via the Csound SourceForge repository browser.
>>>
>>> There are beginning instructions for using Python with Csound in "A
>>> Csound Tutorial," which can be viewed online at Csounds.com, and is
>>> also included in the Windows installers.
>>>
>>> CsoundAC, which is now part of Csound, stands for Csound Algorithmic
>>> Composition and provides facilities for score generation and
>>> algorithmic composition in Python that are comparable in some respects
>>> to Common Music, although the underlying represention of music is
>>> borrowed from scene graphs in 3-dimensional computer graphics
>>> modeling.
>>>
>>> I might be able to be more helpful if you could give me more concrete
>>> examples of what you would like to do. Do you wish to generate scores
>>> in Python then render them with Csound (which is what I do), or do you
>>> wish to embed Python code in Csound orchestras, or do you wish to
>>> create interactive compositions with graphical user interfaces, or do
>>> you wish to read in data from photos or star charts or fractals or
>>> whatever and translate that data into scores that you will render
>>> using Csound (which I also do), or what?
>>>
>>> Hope this helps,
>>> Mike
>>>
>>> On 5/24/09, Hans Mikelson  wrote:
>>> >
>>> > It's been a while since I used Python with Csound but there are a >
>>> > couple of
>>> > tutorials that come with python to get you started with the language. >
>>> > I
>>> > would use a score generating algorithm typically that would act like >
>>> > the
>>> > granular generator but with more control.
>>> >
>>> > A simple example would be to create a sine oscillator instrument where
>>> > > you
>>> > pass the amplitude an pitch parameters from the score and then have >
>>> > python
>>> > generate a bunch of i-statements based on the random number generators
>>> > > and
>>> > vary the start time, duration, pitch and amplitude over a variety of >
>>> > random
>>> > ranges.  This should be a fairly easy way to get started with Python.
>>> >
>>> > You can either have the output displayed to the screen or learn how to
>>> > > write
>>> > it to a file.  Then copy it with a text editor into a csd or sco file.
>>> >
>>> > Go to the Python documentation and work through the tutorial (start >
>>> > here).
>>> > Pay attention about how to import packages.  The package you will want
>>> > > to
>>> > import is the random number generator package.
>>> >
>>> > Good luck,
>>> > Hans Mikelson
>>> >
>>> > -----Original Message-----
>>> > From: Anthony Palomba [mailto:apalomba@austin.rr.com]
>>> > Sent: Sunday, May 24, 2009 6:53 PM
>>> > To: csound@lists.bath.ac.uk
>>> > Subject: [Csnd] Re: Re: Getting started with Python and Csound...
>>> >
>>> > Well after the big Haskell debate, I was under the impression
>>> > that there were lots of people who used python and csound.
>>> >
>>> > Surely there has to be someone out there that can give
>>> > me some guidance on using python and csound...
>>> >
>>> >
>>> >
>>> > Anthony
>>> >
>>> >
>>> > ----- Original Message -----
>>> > From: "Rory Walsh" 
>>> > To: 
>>> > Sent: Friday, May 22, 2009 11:11 AM
>>> > Subject: [Csnd] Re: Getting started with Python and Csound...
>>> >
>>> >
>>> >>I don't use python but I know that Blue lets you seamlessly run python
>>> >> and Csound together.
>>> >>
>>> >> 2009/5/22 apalomba :
>>> >>>
>>> >>> Up to this point, I have been getting along fine with writing
>>> >>> .csd files. But it seems like a lot of people are using python + the
>>> >>> csound API. I figure it is something I should investigate.
>>> >>> (I am ignoring Haskell for now...)
>>> >>>
>>> >>> My goal is to develop a composition prototyping environment that
>>> >>> allows me to design gestures and explore computational mappings of
>>> >>> >>> music
>>> >>> parameters.
>>> >>>
>>> >>> Can someone point me to some python csound API examples
>>> >>> that can get me rolling? I am running Windows csound 5.10.
>>> >>> Is there some editor I can use to run python and csound?
>>> >>>
>>> >>> I am new to python so any advice on how I would use it to
>>> >>> achieve my goal would be appreciated.
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>> Thanks,
>>> >>> Anthony
>>> >>>
>>> >>>
>>> >>> --
>>> >>> View this message in context:
>>> >>>
>>> >
>>> > http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p2
>>> > 3673459.html
>>> >>> Sent from the Csound - General mailing list archive at Nabble.com.
>>> >>>
>>> >>>
>>> >>>
>>> >>> Send bugs reports to this list.
>>> >>> To unsubscribe, send email sympa@lists.bath.ac.uk with body >>>
>>> >>> "unsubscribe
>>> >>> csound"
>>> >>>
>>> >>
>>> >>
>>> >> Send bugs reports to this list.
>>> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body >>
>>> >> "unsubscribe
>>> >> csound"
>>> >
>>> >
>>> >
>>> > Send bugs reports to this list.
>>> > To unsubscribe, send email sympa@lists.bath.ac.uk with body >
>>> > "unsubscribe
>>> > csound"
>>> >
>>> >
>>> >
>>> >
>>> > Send bugs reports to this list.
>>> > To unsubscribe, send email sympa@lists.bath.ac.uk with body >
>>> > "unsubscribe
>>> > csound"
>>> >
>>>
>>>
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>



-- 
http://www.badmuthahubbard.com


Date2009-05-29 13:12
Fromfrancibal
Subject[Csnd] Re: Re: Re: Re: Re: Getting started with Python and Csound...
In my little experience, i've found really useful AthenaCL system
(http://www.flexatone.net/athena.html, by C. Ariza). It's not a real time
system, but it's implemented in python, and then
to look at code it's another way to understand somethings about python.
And Athena work with csound (not in real time!), and, by me, is really
interesting and well documented.

ciao,
fran
-- 
View this message in context: http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p23778841.html
Sent from the Csound - General mailing list archive at Nabble.com.


Date2009-05-29 14:19
FromMichael Gogins
Subject[Csnd] Re: Re: Re: Re: Re: Re: Getting started with Python and Csound...
Do you use athenaCL to make parts of pieces, or entire pieces?

Do you use athenaCL interactively, or do you use it to write scripts
that you then run to generate scores?

Thanks,
Mike

On 5/29/09, francibal  wrote:
>
> In my little experience, i've found really useful AthenaCL system
> (http://www.flexatone.net/athena.html, by C. Ariza). It's not a real time
> system, but it's implemented in python, and then
> to look at code it's another way to understand somethings about python.
> And Athena work with csound (not in real time!), and, by me, is really
> interesting and well documented.
>
> ciao,
> fran
> --
> View this message in context:
> http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p23778841.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>


-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

Date2009-05-29 15:10
From
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Getting started with Python and Csound...
I looked at AthenaCL as well, it looks like it has a lot of
cool features for doing algorithmic composition. 
http://www.flexatone.net/athenaDocs/www/ax03.htm

I imagine one could call AthenaCL scripts from a python/csound 
environment. But it seems like there is a lot of control structures 
you have to deal with. I imagine you would have to refactor things so 
that it would fit the music scene graph model.

Some very interesting possibilities...



Anthony



---- Michael Gogins  wrote: 
> Do you use athenaCL to make parts of pieces, or entire pieces?
> 
> Do you use athenaCL interactively, or do you use it to write scripts
> that you then run to generate scores?
> 
> Thanks,
> Mike
> 
> On 5/29/09, francibal  wrote:
> >
> > In my little experience, i've found really useful AthenaCL system
> > (http://www.flexatone.net/athena.html, by C. Ariza). It's not a real time
> > system, but it's implemented in python, and then
> > to look at code it's another way to understand somethings about python.
> > And Athena work with csound (not in real time!), and, by me, is really
> > interesting and well documented.
> >
> > ciao,
> > fran
> > --
> > View this message in context:
> > http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p23778841.html
> > Sent from the Csound - General mailing list archive at Nabble.com.
> >
> >
> >
> > Send bugs reports to this list.
> > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> > csound"
> >
> 
> 
> -- 
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
> 
> 
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-05-29 16:00
Fromfrancibal
Subject[Csnd] Re: Re: Re: Re: Re: Re: Getting started with Python and Csound...
Dear Mr. Gogins,
i'm at early stage, but i've tried to use athena interactively for entire
piece (only little experiments).
The system has output in csound data (csd), or midi, or ... It is possible
an output in (your) Silence orchestra, but i don't know how use it, maybe
cause Silence system is changed to CsoundAC (i can only imagine). But it
seems to me that athena is a wonderful system to study some theory too (it
has some feature for use of Xenakis sieve, or for voice leading, Forte set
class name, and more ...). Really i'm sorry cause i'm not able to say
somthings more, i'm not expert in athena nor in csound ...
Only i can say that athena it seems really interesting, like it seems (to
me) CsoundAC, but both are not easy for who, like me, do not have a
programming basis. I must study.
Hope useful,

ciao,
fran.

 

Michael Gogins-2 wrote:
> 
> Do you use athenaCL to make parts of pieces, or entire pieces?
> 
> Do you use athenaCL interactively, or do you use it to write scripts
> that you then run to generate scores?
> 
> Thanks,
> Mike
> 
> On 5/29/09, francibal  wrote:
>>
>> In my little experience, i've found really useful AthenaCL system
>> (http://www.flexatone.net/athena.html, by C. Ariza). It's not a real time
>> system, but it's implemented in python, and then
>> to look at code it's another way to understand somethings about python.
>> And Athena work with csound (not in real time!), and, by me, is really
>> interesting and well documented.
>>
>> ciao,
>> fran
>> --
>> View this message in context:
>> http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p23778841.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
> 
> 
> -- 
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
> 
> 
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
> 
> 

-- 
View this message in context: http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p23781568.html
Sent from the Csound - General mailing list archive at Nabble.com.


Date2009-05-29 16:11
Fromfrancibal
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Getting started with Python and Csound...
yes, also it's possible to use the athena generators from in csound (in a
csd).
There is an article on Csound journal (issue 9), if i remember well.


ciao,
fran.




apalomba wrote:
> 
> I looked at AthenaCL as well, it looks like it has a lot of
> cool features for doing algorithmic composition. 
> http://www.flexatone.net/athenaDocs/www/ax03.htm
> 
> I imagine one could call AthenaCL scripts from a python/csound 
> environment. But it seems like there is a lot of control structures 
> you have to deal with. I imagine you would have to refactor things so 
> that it would fit the music scene graph model.
> 
> Some very interesting possibilities...
> 
> 
> 
> Anthony
> 
> 
> 
> ---- Michael Gogins  wrote: 
>> Do you use athenaCL to make parts of pieces, or entire pieces?
>> 
>> Do you use athenaCL interactively, or do you use it to write scripts
>> that you then run to generate scores?
>> 
>> Thanks,
>> Mike
>> 
>> On 5/29/09, francibal  wrote:
>> >
>> > In my little experience, i've found really useful AthenaCL system
>> > (http://www.flexatone.net/athena.html, by C. Ariza). It's not a real
>> time
>> > system, but it's implemented in python, and then
>> > to look at code it's another way to understand somethings about python.
>> > And Athena work with csound (not in real time!), and, by me, is really
>> > interesting and well documented.
>> >
>> > ciao,
>> > fran
>> > --
>> > View this message in context:
>> >
>> http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p23778841.html
>> > Sent from the Csound - General mailing list archive at Nabble.com.
>> >
>> >
>> >
>> > Send bugs reports to this list.
>> > To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> "unsubscribe
>> > csound"
>> >
>> 
>> 
>> -- 
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>> 
>> 
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
> 
> 
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
> 
> 

-- 
View this message in context: http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p23781792.html
Sent from the Csound - General mailing list archive at Nabble.com.


Date2009-05-29 16:56
FromMichael Gogins
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Getting started with Python and Csound...
Thanks for the info...

Mike

On 5/29/09, francibal  wrote:
>
> yes, also it's possible to use the athena generators from in csound (in a
> csd).
> There is an article on Csound journal (issue 9), if i remember well.
>
>
> ciao,
> fran.
>
>
>
>
> apalomba wrote:
>>
>> I looked at AthenaCL as well, it looks like it has a lot of
>> cool features for doing algorithmic composition.
>> http://www.flexatone.net/athenaDocs/www/ax03.htm
>>
>> I imagine one could call AthenaCL scripts from a python/csound
>> environment. But it seems like there is a lot of control structures
>> you have to deal with. I imagine you would have to refactor things so
>> that it would fit the music scene graph model.
>>
>> Some very interesting possibilities...
>>
>>
>>
>> Anthony
>>
>>
>>
>> ---- Michael Gogins  wrote:
>>> Do you use athenaCL to make parts of pieces, or entire pieces?
>>>
>>> Do you use athenaCL interactively, or do you use it to write scripts
>>> that you then run to generate scores?
>>>
>>> Thanks,
>>> Mike
>>>
>>> On 5/29/09, francibal  wrote:
>>> >
>>> > In my little experience, i've found really useful AthenaCL system
>>> > (http://www.flexatone.net/athena.html, by C. Ariza). It's not a real
>>> time
>>> > system, but it's implemented in python, and then
>>> > to look at code it's another way to understand somethings about python.
>>> > And Athena work with csound (not in real time!), and, by me, is really
>>> > interesting and well documented.
>>> >
>>> > ciao,
>>> > fran
>>> > --
>>> > View this message in context:
>>> >
>>> http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p23778841.html
>>> > Sent from the Csound - General mailing list archive at Nabble.com.
>>> >
>>> >
>>> >
>>> > Send bugs reports to this list.
>>> > To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>> "unsubscribe
>>> > csound"
>>> >
>>>
>>>
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Getting-started-with-Python-and-Csound...-tp23673459p23781792.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>


-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com