User:Tamas Bates/NetProto/PyAudio

From XPUB & Lens-Based wiki

RAW Wav generation

This script generates semi-random WAV audio by mixing together several flexible sound structures (e.g. play a scale of 5 notes at the same time as a chord made up of 2 other notes). To keep the sound output from being too horrible, a core frequency is defined, and all notes generated in the output are made from frequencies harmonic to the core. This is not quite sufficient, and the program still simply generates horrible noise nine times out of ten.

 Usage:
   audio.py [-f Filename] [-l Duration]
   This will output Duration seconds (approx.) of data to Filename.
   Omitting the -f argument will cause the program to send all data to stdout. Unfortunately, it doesn't generate samples fast enough to play the content in real-time, so this is of limited use...