Discussion:
[Tutor] about real-time audio synthesis and algorithmic composition
Paul
2015-07-04 04:05:47 UTC
Permalink
Hi !
I'm a rookie to programming, and just graduated from a conservatory of music last year. I'm interested in real-time audio synthesis and algorithmic composition, I can write a little bit SuperCollider and Django. I just buy a book called "Python Programming for the Absolute Beginner" (Chinese version), and try to learn Python via it.

I have a query, Is there have a way (e.g. import some library) to synthesis sound in Python as SuperCollider? (synthesis sound via write some code in a file, and run it will hear the result immediately.)

I'm realy like Python's style, and want to learn Programming from Python. If I can learn it through synthesis sound, I will be very happy. :-) In addition, I think if I can synthesis sound via Python Code, I will have more chance to cooperate with other programer. :-)

Thanks!
Paul Yeh
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Alan Gauld
2015-07-04 08:04:00 UTC
Permalink
On 04/07/15 05:05, Paul wrote:
> I'm interested in real-time audio synthesis and
> algorithmic composition,

There are a few options for working with audio in the standard
library - winsound, aifc,wave etc.

The PyGame package also has some audio capabilities.

And finally the Scikit project has some audio packages too.

There is a wiki page on the subject here:

https://wiki.python.org/moin/PythonInMusic

HTH
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Laura Creighton
2015-07-05 00:32:40 UTC
Permalink
In a message of Sat, 04 Jul 2015 12:05:47 +0800, "Paul" writes:
>Hi !
>I'm a rookie to programming, and just graduated from a conservatory of music last year. I'm interested in real-time audio synthesis and algorithmic composition, I can write a little bit SuperCollider and Django. I just buy a book called "Python Programming for the Absolute Beginner" (Chinese version), and try to learn Python via it.
>
>I have a query, Is there have a way (e.g. import some library) to synthesis sound in Python as SuperCollider? (synthesis sound via write some code in a file, and run it will hear the result immediately.)
>
>I'm realy like Python's style, and want to learn Programming from Python. If I can learn it through synthesis sound, I will be very happy. :-) In addition, I think if I can synthesis sound via Python Code, I will have more chance to cooperate with other programer. :-)
>
>Thanks!
>Paul Yeh

There are python bindings for supercollider. I've never used them.

http://supercollider.sourceforge.net/wiki/index.php/Systems_interfacing_with_SC
lists 3
and I think this is a 4th.
https://pypi.python.org/pypi/SC/0.2


You can also get it through Blender.
http://blenderscripting.blogspot.se/2014/11/blender-pynodes-and-supercollider-and.html

I've done this. It works.

Best of luck, write back if you have any problems,
Laura
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Laura Creighton
2015-07-05 05:18:46 UTC
Permalink
In a message of Sun, 05 Jul 2015 12:18:34 +0800, "Zhongye" writes:
>Thanks for your helpful reply.
>I have check them, that it control SuperCollider via OSC (Open Sound Control), and it provides with a simpler API to use those libraries.
>Is that mean if I write some python scripts importing it, and the others want to use my scripts, they have to also install the SuperCollider?

That is one way to do things. The other, more complicated way is to
package your result into a binary file that contains all the things you need
--- which means that they won't have to install SuperCollider because
you already have done this for them. Packaging solutions are different
depending on what operating system you are running, so if you want your
thing to run under windows and Mac OS and Linux you will need to make
at least 3 different versions.

Laura
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Zhongye
2015-07-05 04:04:42 UTC
Permalink
Thank for your helpful replay, I had a rough learning route.
I think I need learn some basics via the book firstly, and try to write some code for sound using the standard library.

I have check the link you send to me, I'm interested in the PyGame package, and I found that the Audio Programming Frameworks seem not very active?
Now, I think I already start to learn Python in right route. :-)

------------------------------------------------------------------
From:Alan Gauld <***@btinternet.com>
Send Time:2015年7月4日(星期六) 16:05
To:tutor <***@python.org>
Subject:Re: [Tutor] about real-time audio synthesis and algorithmic composition


On 04/07/15 05:05, Paul wrote:
> I'm interested in real-time audio synthesis and
> algorithmic composition,


There are a few options for working with audio in the standard
library - winsound, aifc,wave etc.


The PyGame package also has some audio capabilities.


And finally the Scikit project has some audio packages too.


There is a wiki page on the subject here:


https://wiki.python.org/moin/PythonInMusic


HTH
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https
Laura Creighton
2015-07-05 10:46:22 UTC
Permalink
In a message of Sun, 05 Jul 2015 12:04:42 +0800, "Zhongye" writes:
>Thank for your helpful replay, I had a rough learning route.
>I think I need learn some basics via the book firstly, and try to write some code for sound using the standard library.
>
>I have check the link you send to me, I'm interested in the PyGame package, and I found that the Audio Programming Frameworks seem not very active?
>Now, I think I already start to learn Python in right route. :-)
>

Definitely learning Python is the right first step.
Blender development is very active.

Laura

_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Continue reading on narkive:
Search results for '[Tutor] about real-time audio synthesis and algorithmic composition' (Questions and Answers)
3
replies
which software is best for Music directors..?
started 2010-06-25 15:26:59 UTC
software
Loading...