Date: Wed, 18 Jul 2001 11:45:59 -0400 From: Brian Reichert <reichert@numachi.com> To: Christoph Kukulies <kuku@gilberto.physik.rwth-aachen.de> Cc: multimedia@freebsd.org Subject: Re: writing a sine to a .wav Message-ID: <20010718114559.Q49286@numachi.com> In-Reply-To: <200107181542.f6IFgtl63993@gilberto.physik.rwth-aachen.de>; from kuku@gilberto.physik.rwth-aachen.de on Wed, Jul 18, 2001 at 05:42:55PM %2B0200 References: <200107181542.f6IFgtl63993@gilberto.physik.rwth-aachen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 18, 2001 at 05:42:55PM +0200, Christoph Kukulies wrote: > Does anyone know of a function (API) or whatever that allows for generating > .wav data (or .mp3) data out of mathematical functions like sin(x),sin(2x), > sin(3x) etc. Well, sox(1) seems to be the switchblade knife for sound file conversion, and it can accept 'raw' and 'textual' data. .dat Text Data files These files contain a textual representation of the sample data. There is one line at the beginning that contains the sample rate. Subse- quent lines contain two numeric data items: the time since the beginning of the sample and the sample value. Values are normalized so that the maximum and minimum are 1.00 and -1.00. This file format can be used to create data files for external programs such as FFT analyzers or graph routines. SoX can also convert a file in this format back into one of the other file formats. I have no idea if that's useful for you, though... > -- > Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-multimedia" in the body of the message -- Brian 'you Bastard' Reichert <reichert@numachi.com> 37 Crystal Ave. #303 Daytime number: (603) 434-6842 Derry NH 03038-1713 USA Intel architecture: the left-hand path To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010718114559.Q49286>