User:Tamas Bates/NetProto/PyAudio

From XPUB & Lens-Based wiki
< User:Tamas Bates‎ | NetProto
Revision as of 19:35, 13 October 2013 by Tamas Bates (talk | contribs) (Created page with "== 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 ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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...