Size: 361
Comment: shatan.com
|
Size: 1229
Comment: setup.py oddity
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
<a href="http://craps-betting.hutwistina.com">craps betting</a> <br /> <a href="http://learn-craps.hutwistina.com">learn craps</a> <br /> <a href="http://internet-craps.hutwistina.com">internet craps</a> <br /> <a href="http://forever-craps.hutwistina.com">forever craps</a> <br /> <a href="http://craps-layout.hutwistina.com">craps layout</a> <br /> |
Links: * [[http://www.musickit.org/|MusicKit]] - [[/PyObjC]] * [[http://www.eblong.com/zarf/boodler/|Boodler]] - [[/Python]] I (DonovanPreston) have been noodling around with wrapping the low level /CoreAudio APIs necessary to generate sound on Mac OS X using Python. After struggling with threading and callbacks into Python issues I managed to get a simple hello world going which just plays a sine wave for 5 seconds. The bulk of the code is in a pyrex file here: * [[http://soundfarmer.com/content/code/coreaudio/coreaudio.pyx]] And here is the simple driver python script: * [[http://soundfarmer.com/content/code/coreaudio/catest.py]] You compile the pyrex to a c file, and then there is a setup script which will build the extension module: * [[http://soundfarmer.com/content/code/coreaudio/setup.py]] - didn't work. tries running the python file as a shell script by default (?!?), with python gives "error: no commands supplied". How should this work? Other links: ## some description is missing * http://aldebaran.armory.com/~zenomt/macosx/ * http://www.mat.ucsb.edu/~c.ramakr/illposed/craudiounits.html * http://www.pete.yandell.com/software/pymidi/Read%20Me.html |
Links:
I (DonovanPreston) have been noodling around with wrapping the low level /CoreAudio APIs necessary to generate sound on Mac OS X using Python. After struggling with threading and callbacks into Python issues I managed to get a simple hello world going which just plays a sine wave for 5 seconds. The bulk of the code is in a pyrex file here:
And here is the simple driver python script:
You compile the pyrex to a c file, and then there is a setup script which will build the extension module:
- didn't work. tries running the python file as a shell script by default (?!?), with python gives "error: no commands supplied". How should this work?
Other links: