From: Robert D. <man...@gm...> - 2011-11-22 15:34:07
|
I have a related but really simple question: What do the normalized second and third column sample values refer to? Amplitude? I'm trying to map notes to colors. On Nov 22, 2011, at 7:07 AM, Jan Stary <ha...@st...> wrote: > On Nov 22 07:34:51, jim Schimpf wrote: >> Hi, >> >> In the SOX documents it says the DAT file is text file of the signal data with the first line being a single value of sample rate and subsequent lines being time and the the wave value scaled from -1 to 1. >> >> When I make a file like this SOX says it cannot find the sample rate, >> >> 8000 <-- Sample rate >> 0 0 <-- First time & sample >> 0.000125 0.105667 <-- Next? >> : >> >> >> instead if I make it of the form: (which matches the output created by having sox output a DAT file) >> >> ; Sample Rate 8000 >> ; Channels 1 >> 0 0 >> 0.000125 0.105667 >> : >> >> then it works just fine. >> >> Did I miss something or should the documentation be amended ? > > > This git patch still needs to be edited to include the > > ; Sample Rate 48000 > ; Channels 2 > > lines; I never got around to learning the man syntax > properly, so please someone finish this. > > Jan > > > --- > soxformat.7 | 8 +++++--- > 1 files changed, 5 insertions(+), 3 deletions(-) > > diff --git a/soxformat.7 b/soxformat.7 > index c1d2513..c6a7593 100644 > --- a/soxformat.7 > +++ b/soxformat.7 > @@ -284,9 +284,11 @@ be used with any bit-rate. E.g. > 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. Subsequent lines > -contain two numeric data items: the time since > -the beginning of the first sample and the sample value. > +that contains the sample rate, and one line that > +contains the number of channels. Subsequent lines > +contain two or more numeric data items: the time since > +the beginning of the first sample and the sample value > +for each channel. > Values are normalized so that the maximum and minimum > are 1 and \-1. This file format can be used to > create data files for external programs such as > -- > 1.7.6 > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Sox-users mailing list > Sox...@li... > https://lists.sourceforge.net/lists/listinfo/sox-users |