generating audio signals

nicke hiower4 at elitemail.org
Tue Mar 22 16:58:23 EST 2005


On Tue, 22 Mar 2005 00:51:57 GMT
bokr at oz.net (Bengt Richter) wrote:

> On 21 Mar 2005 11:12:38 -0800, "Cappy2112" <cappy2112 at gmail.com> wrote:
> 
> >>>Maybe make yourself a little utility first that will show you the
> >specs for any .wav file (i.e.,
> >>>sampling frequency, bytes per sample, channels, etc.)
> >
> >You can do this with one function call - wave.Wave_read.getparams()
> >import wave
> >wave.open("filename","b")
> >wave.Wave_read.getparams()
> >
> Yeah, I know ;-) I expected the OP to discover that really quick,
> and enjoy an early tidbit of success, maybe printing the parameters
> in a pretty format to his taste ;-)
> 
> Regards,
> Bengt Richter
> -- 
> http://mail.python.org/mailman/listinfo/python-list

already found it and used it, but did some more research...
packed/unpacked the wave files, made programs for generating
frequencies, playing them, saving them, and plotting the files as
amplitude as a function of time.



More information about the Python-list mailing list