Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
This is freebie text mode Python code to generate an audio signal at the speakers/headphone_sockets of MacBook Pros.

The signal is a 1KHz pure sinewave...

The full code is here:-

http://code.activestate.com/recipes...1khz-pure-audio-sinewave-gene/?in=lang-python

Enjoy finding simple solutions to often very difficult problems...

Bazza, G0LCU...
Why wouldnt you just use scitools sound module? It's more readily available and the code is even shorter, just relies on numpy arrays

Code:
from scitools import sound
sound.play(sound.Nothing_Else_Matters())
Theres an example of the song 'nothing else matters'

seems like you took the more complicated route.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.