GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Python Wiki
  • PSF Wiki
  • Jython Wiki
  • Python Wiki
  • Platform-Specific
  • MacPython

This view

  • Original page
  • New address

GeezerVison is showing wiki.python.org — MacPython / Core Audio

View as Markdown

MacPython / Core Audio¶

Legacy Wiki Page

This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.

Links:

  • MusicKit - /PyObjC

  • 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

Other links:

  • 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

Previous
MacPython / Carbon Documentation
Next
MacPython / Draw Bot
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.