Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Csound/Python classes and methods

Date2009-06-19 01:00
Frommichael.gogins@gmail.com
Subject[Csnd] Re: Csound/Python classes and methods
Did you look at the Python examples in the Csound examples directory, either 
from the Windows installers or from Csound CVS?

Regards,
Mike

----- Original Message ----- 
From: "mark jamerson" 
To: "Csound" 
Sent: Thursday, June 18, 2009 7:27 PM
Subject: [Csnd] Csound/Python classes and methods


>
>
>  Hey,
>
>      I'm trying to get more adept at using python with csound, but I have 
> found it hard to figure out what all of the classes and methods of csnd.py 
> do and how to use them.  I've looked through the help documentation on 
> them, but those only give the type and number of arguments for the 
> methods.  I am wondering if there is a resource documenting what function 
> each method performs.  Some of them are self explanatory, such as 
> setScore, but others are a little unclear, or just not extremely 
> intuitive.  Any help, such as examples of python scripts that might 
> illuminate these types of things, is welcomed.  Also, I have read Mike 
> Gogins, tutorial, so there is no need to suggest that.
>
>                                                                     Mark
>
>
>
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound"
> 


Date2009-06-19 01:10
FromRory Walsh
Subject[Csnd] Re: Re: Csound/Python classes and methods
Not sure if it will help that much but have you looked at the csound.h
header file, it contains good descriptions of what the native api
functions do which in turn might help you understand the python
interface better.

Rory.


2009/6/19  :
> Did you look at the Python examples in the Csound examples directory, either
> from the Windows installers or from Csound CVS?
>
> Regards,
> Mike
>
> ----- Original Message ----- From: "mark jamerson" 
> To: "Csound" 
> Sent: Thursday, June 18, 2009 7:27 PM
> Subject: [Csnd] Csound/Python classes and methods
>
>
>>
>>
>>  Hey,
>>
>>     I'm trying to get more adept at using python with csound, but I have
>> found it hard to figure out what all of the classes and methods of csnd.py
>> do and how to use them.  I've looked through the help documentation on them,
>> but those only give the type and number of arguments for the methods.  I am
>> wondering if there is a resource documenting what function each method
>> performs.  Some of them are self explanatory, such as setScore, but others
>> are a little unclear, or just not extremely intuitive.  Any help, such as
>> examples of python scripts that might illuminate these types of things, is
>> welcomed.  Also, I have read Mike Gogins, tutorial, so there is no need to
>> suggest that.
>>
>>                                                                    Mark
>>
>>
>>
>>
>>
>>
>> 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-06-19 01:12
Frommark jamerson
Subject[Csnd] Re: Re: Re: Csound/Python classes and methods
 

    I will check both of these suggestions out.  Thanks.  



----- Original Message ----
From: Rory Walsh 
To: csound@lists.bath.ac.uk
Sent: Thursday, June 18, 2009 7:10:01 PM
Subject: [Csnd] Re: Re: Csound/Python classes and methods

Not sure if it will help that much but have you looked at the csound.h
header file, it contains good descriptions of what the native api
functions do which in turn might help you understand the python
interface better.

Rory.


2009/6/19  :
> Did you look at the Python examples in the Csound examples directory, either
> from the Windows installers or from Csound CVS?
>
> Regards,
> Mike
>
> ----- Original Message ----- From: "mark jamerson" 
> To: "Csound" 
> Sent: Thursday, June 18, 2009 7:27 PM
> Subject: [Csnd] Csound/Python classes and methods
>
>
>>
>>
>>  Hey,
>>
>>     I'm trying to get more adept at using python with csound, but I have
>> found it hard to figure out what all of the classes and methods of csnd.py
>> do and how to use them.  I've looked through the help documentation on them,
>> but those only give the type and number of arguments for the methods.  I am
>> wondering if there is a resource documenting what function each method
>> performs.  Some of them are self explanatory, such as setScore, but others
>> are a little unclear, or just not extremely intuitive.  Any help, such as
>> examples of python scripts that might illuminate these types of things, is
>> welcomed.  Also, I have read Mike Gogins, tutorial, so there is no need to
>> suggest that.
>>
>>                                                                    Mark
>>
>>
>>
>>
>>
>>
>> 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-06-19 10:56
Frommark jamerson
Subject[Csnd] Re: Re: Re: Csound/Python classes and methods

   The csound.h file is precisely what I was looking for.  Thanks Rory.  Now I can look through the examples and have a better idea of what the code is doing.  A slightly reformatted version of the information in csound.h might be a good resource for future python-csounders.  

                                                            Mark 



----- Original Message ----
From: Rory Walsh 
To: csound@lists.bath.ac.uk
Sent: Thursday, June 18, 2009 7:10:01 PM
Subject: [Csnd] Re: Re: Csound/Python classes and methods

Not sure if it will help that much but have you looked at the csound.h
header file, it contains good descriptions of what the native api
functions do which in turn might help you understand the python
interface better.

Rory.


2009/6/19  :
> Did you look at the Python examples in the Csound examples directory, either
> from the Windows installers or from Csound CVS?
>
> Regards,
> Mike
>
> ----- Original Message ----- From: "mark jamerson" 
> To: "Csound" 
> Sent: Thursday, June 18, 2009 7:27 PM
> Subject: [Csnd] Csound/Python classes and methods
>
>
>>
>>
>>  Hey,
>>
>>     I'm trying to get more adept at using python with csound, but I have
>> found it hard to figure out what all of the classes and methods of csnd.py
>> do and how to use them.  I've looked through the help documentation on them,
>> but those only give the type and number of arguments for the methods.  I am
>> wondering if there is a resource documenting what function each method
>> performs.  Some of them are self explanatory, such as setScore, but others
>> are a little unclear, or just not extremely intuitive.  Any help, such as
>> examples of python scripts that might illuminate these types of things, is
>> welcomed.  Also, I have read Mike Gogins, tutorial, so there is no need to
>> suggest that.
>>
>>                                                                    Mark
>>
>>
>>
>>
>>
>>
>> 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-06-19 11:03
FromRory Walsh
Subject[Csnd] Re: Re: Re: Re: Csound/Python classes and methods
AttachmentsCsoundDoxy.zip  
>idea of what the code is doing.  A slightly reformatted version of the information in csound.h might be a good resource for future >python-csounders.

Check out the csound_8h.html in the attached archive.

Rory.


>
>                                                            Mark
>
>
>
> ----- Original Message ----
> From: Rory Walsh 
> To: csound@lists.bath.ac.uk
> Sent: Thursday, June 18, 2009 7:10:01 PM
> Subject: [Csnd] Re: Re: Csound/Python classes and methods
>
> Not sure if it will help that much but have you looked at the csound.h
> header file, it contains good descriptions of what the native api
> functions do which in turn might help you understand the python
> interface better.
>
> Rory.
>
>
> 2009/6/19  :
>> Did you look at the Python examples in the Csound examples directory, either
>> from the Windows installers or from Csound CVS?
>>
>> Regards,
>> Mike
>>
>> ----- Original Message ----- From: "mark jamerson" 
>> To: "Csound" 
>> Sent: Thursday, June 18, 2009 7:27 PM
>> Subject: [Csnd] Csound/Python classes and methods
>>
>>
>>>
>>>
>>>  Hey,
>>>
>>>     I'm trying to get more adept at using python with csound, but I have
>>> found it hard to figure out what all of the classes and methods of csnd.py
>>> do and how to use them.  I've looked through the help documentation on them,
>>> but those only give the type and number of arguments for the methods.  I am
>>> wondering if there is a resource documenting what function each method
>>> performs.  Some of them are self explanatory, such as setScore, but others
>>> are a little unclear, or just not extremely intuitive.  Any help, such as
>>> examples of python scripts that might illuminate these types of things, is
>>> welcomed.  Also, I have read Mike Gogins, tutorial, so there is no need to
>>> suggest that.
>>>
>>>                                                                    Mark
>>>
>>>
>>>
>>>
>>>
>>>
>>> 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"
>

Date2009-06-19 11:53
FromMichael Gogins
Subject[Csnd] Re: Re: Re: Re: Re: Csound/Python classes and methods
Did you look at the Csound API Reference Manual? It contains exactly
the information in csound.h and a great deal more besides, reformatted
as you request. It's in the Windows installers, or you can create it
yourself by running Doxygen in the Csound source code root directory.

Regards,
Mike

On 6/19/09, Rory Walsh  wrote:
>>idea of what the code is doing.  A slightly reformatted version of the
>> information in csound.h might be a good resource for future
>> >python-csounders.
>
> Check out the csound_8h.html in the attached archive.
>
> Rory.
>
>
>>
>>                                                            Mark
>>
>>
>>
>> ----- Original Message ----
>> From: Rory Walsh 
>> To: csound@lists.bath.ac.uk
>> Sent: Thursday, June 18, 2009 7:10:01 PM
>> Subject: [Csnd] Re: Re: Csound/Python classes and methods
>>
>> Not sure if it will help that much but have you looked at the csound.h
>> header file, it contains good descriptions of what the native api
>> functions do which in turn might help you understand the python
>> interface better.
>>
>> Rory.
>>
>>
>> 2009/6/19  :
>>> Did you look at the Python examples in the Csound examples directory,
>>> either
>>> from the Windows installers or from Csound CVS?
>>>
>>> Regards,
>>> Mike
>>>
>>> ----- Original Message ----- From: "mark jamerson" 
>>> To: "Csound" 
>>> Sent: Thursday, June 18, 2009 7:27 PM
>>> Subject: [Csnd] Csound/Python classes and methods
>>>
>>>
>>>>
>>>>
>>>>  Hey,
>>>>
>>>>     I'm trying to get more adept at using python with csound, but I have
>>>> found it hard to figure out what all of the classes and methods of
>>>> csnd.py
>>>> do and how to use them.  I've looked through the help documentation on
>>>> them,
>>>> but those only give the type and number of arguments for the methods.  I
>>>> am
>>>> wondering if there is a resource documenting what function each method
>>>> performs.  Some of them are self explanatory, such as setScore, but
>>>> others
>>>> are a little unclear, or just not extremely intuitive.  Any help, such
>>>> as
>>>> examples of python scripts that might illuminate these types of things,
>>>> is
>>>> welcomed.  Also, I have read Mike Gogins, tutorial, so there is no need
>>>> to
>>>> suggest that.
>>>>
>>>>                                                                    Mark
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> 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"
>>
>
> 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-06-19 20:04
Frommark jamerson
Subject[Csnd] Re: Re: Re: Re: Re: Re: Csound/Python classes and methods

 I did take a quick look at the API ref manual, and initially found it confusing.  At another glance, I am seeing how it correlates with csound.h.  I will take a more in depth look at it over the next few days.  Thank you for you help Mike and Rory.  
  
    Additionally, I have one quick question.  What is the difference between csnd.CppSound() and csnd.Csound()?  When should one be used over the other?  

                                                                                 Mark 



----- Original Message ----
From: Michael Gogins 
To: csound@lists.bath.ac.uk
Sent: Friday, June 19, 2009 5:53:31 AM
Subject: [Csnd] Re: Re: Re: Re: Re: Csound/Python classes and methods

Did you look at the Csound API Reference Manual? It contains exactly
the information in csound.h and a great deal more besides, reformatted
as you request. It's in the Windows installers, or you can create it
yourself by running Doxygen in the Csound source code root directory.

Regards,
Mike

On 6/19/09, Rory Walsh  wrote:
>>idea of what the code is doing.  A slightly reformatted version of the
>> information in csound.h might be a good resource for future
>> >python-csounders.
>
> Check out the csound_8h.html in the attached archive.
>
> Rory.
>
>
>>
>>                                                            Mark
>>
>>
>>
>> ----- Original Message ----
>> From: Rory Walsh 
>> To: csound@lists.bath.ac.uk
>> Sent: Thursday, June 18, 2009 7:10:01 PM
>> Subject: [Csnd] Re: Re: Csound/Python classes and methods
>>
>> Not sure if it will help that much but have you looked at the csound.h
>> header file, it contains good descriptions of what the native api
>> functions do which in turn might help you understand the python
>> interface better.
>>
>> Rory.
>>
>>
>> 2009/6/19  :
>>> Did you look at the Python examples in the Csound examples directory,
>>> either
>>> from the Windows installers or from Csound CVS?
>>>
>>> Regards,
>>> Mike
>>>
>>> ----- Original Message ----- From: "mark jamerson" 
>>> To: "Csound" 
>>> Sent: Thursday, June 18, 2009 7:27 PM
>>> Subject: [Csnd] Csound/Python classes and methods
>>>
>>>
>>>>
>>>>
>>>>  Hey,
>>>>
>>>>     I'm trying to get more adept at using python with csound, but I have
>>>> found it hard to figure out what all of the classes and methods of
>>>> csnd.py
>>>> do and how to use them.  I've looked through the help documentation on
>>>> them,
>>>> but those only give the type and number of arguments for the methods.  I
>>>> am
>>>> wondering if there is a resource documenting what function each method
>>>> performs.  Some of them are self explanatory, such as setScore, but
>>>> others
>>>> are a little unclear, or just not extremely intuitive.  Any help, such
>>>> as
>>>> examples of python scripts that might illuminate these types of things,
>>>> is
>>>> welcomed.  Also, I have read Mike Gogins, tutorial, so there is no need
>>>> to
>>>> suggest that.
>>>>
>>>>                                                                    Mark
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> 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"
>>
>
> 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-06-19 20:56
FromMichael Gogins
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Csound/Python classes and methods
I have answered this question several times...

csnd.Csound ecapsulates csound.h and csound.hpp. The Csound orchestra
and score are somewhere on the file system.

csnd.CppSound encapsulates CppSound.hpp and CsoundFile.hpp. The Csound
orchestra and score are contained inside the CppSound object, though
they have to be exported to the file system before running Csound.
This is useful in algorithmic composition - you can programmatically
build up a score in CppSound - and almost necessary when using Csound
as a plugin in some application that expects to store the Csound score
and orchestra in its own file format.

Hope this helps,
Mike


On 6/19/09, mark jamerson  wrote:
>
>
>  I did take a quick look at the API ref manual, and initially found it
> confusing.  At another glance, I am seeing how it correlates with csound.h.
> I will take a more in depth look at it over the next few days.  Thank you
> for you help Mike and Rory.
>
>     Additionally, I have one quick question.  What is the difference between
> csnd.CppSound() and csnd.Csound()?  When should one be used over the other?
>
>
>     Mark
>
>
>
> ----- Original Message ----
> From: Michael Gogins 
> To: csound@lists.bath.ac.uk
> Sent: Friday, June 19, 2009 5:53:31 AM
> Subject: [Csnd] Re: Re: Re: Re: Re: Csound/Python classes and methods
>
> Did you look at the Csound API Reference Manual? It contains exactly
> the information in csound.h and a great deal more besides, reformatted
> as you request. It's in the Windows installers, or you can create it
> yourself by running Doxygen in the Csound source code root directory.
>
> Regards,
> Mike
>
> On 6/19/09, Rory Walsh  wrote:
>>>idea of what the code is doing.  A slightly reformatted version of the
>>> information in csound.h might be a good resource for future
>>> >python-csounders.
>>
>> Check out the csound_8h.html in the attached archive.
>>
>> Rory.
>>
>>
>>>
>>>                                                            Mark
>>>
>>>
>>>
>>> ----- Original Message ----
>>> From: Rory Walsh 
>>> To: csound@lists.bath.ac.uk
>>> Sent: Thursday, June 18, 2009 7:10:01 PM
>>> Subject: [Csnd] Re: Re: Csound/Python classes and methods
>>>
>>> Not sure if it will help that much but have you looked at the csound.h
>>> header file, it contains good descriptions of what the native api
>>> functions do which in turn might help you understand the python
>>> interface better.
>>>
>>> Rory.
>>>
>>>
>>> 2009/6/19  :
>>>> Did you look at the Python examples in the Csound examples directory,
>>>> either
>>>> from the Windows installers or from Csound CVS?
>>>>
>>>> Regards,
>>>> Mike
>>>>
>>>> ----- Original Message ----- From: "mark jamerson"
>>>> 
>>>> To: "Csound" 
>>>> Sent: Thursday, June 18, 2009 7:27 PM
>>>> Subject: [Csnd] Csound/Python classes and methods
>>>>
>>>>
>>>>>
>>>>>
>>>>>  Hey,
>>>>>
>>>>>     I'm trying to get more adept at using python with csound, but I
>>>>> have
>>>>> found it hard to figure out what all of the classes and methods of
>>>>> csnd.py
>>>>> do and how to use them.  I've looked through the help documentation on
>>>>> them,
>>>>> but those only give the type and number of arguments for the methods.
>>>>> I
>>>>> am
>>>>> wondering if there is a resource documenting what function each method
>>>>> performs.  Some of them are self explanatory, such as setScore, but
>>>>> others
>>>>> are a little unclear, or just not extremely intuitive.  Any help, such
>>>>> as
>>>>> examples of python scripts that might illuminate these types of things,
>>>>> is
>>>>> welcomed.  Also, I have read Mike Gogins, tutorial, so there is no need
>>>>> to
>>>>> suggest that.
>>>>>
>>>>>                                                                    Mark
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> 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"
>>>
>>
>> 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"
>


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