User:Tamas Bates/NetProto/PyAudio: Difference between revisions

From XPUB & Lens-Based wiki
(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 ...")
 
Line 4: Line 4:


   '''Usage:'''
   '''Usage:'''
     audio.py [-f Filename] [-l Duration]
     '''audio.py''' [-f Filename] [-l Duration]
     This will output Duration seconds (approx.) of data to Filename.
     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...
     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...

Revision as of 19:35, 13 October 2013

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