[R] load.wave

Jeff Newmiller jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Sat Feb 2 19:51:15 CET 2019

You aren't pushing any envelope... you slit it open and fell out somewhere on the sidewalk. I tossed your question into Google and it came back with [1] and [2]. Please do that yourself instead whenever you are tempted to go off topic.

[1] https://stackoverflow.com/questions/25940376/whats-the-actual-data-in-a-wav-file
[2] https://en.m.wikipedia.org/wiki/Digital_audio

On February 1, 2019 2:20:57 AM PST, Nick Wray via R-help <r-help using r-project.org> wrote:
>I have been given a wav file of train locomotive noise - literally
>something you can play back and hear.  Using the audio package and the
>load.wave function I have got a 1.5 million element vector which
>visually at least has some periodicity in certain parts and does not
>seem to be completely random.  Most elements (99%) are within a range
>of about -0.14 to +0.14 with occasional outliers.  Beneath is a typical
>short segment.
>This is the head:
>sample rate: 16000Hz, mono, 16-bits
>[1] -3.051851e-05  6.103516e-05 -6.103702e-05  3.051758e-05 
>3.051758e-05 -1.220740e-04
>Most elements (99%) are within a range of about -0.14 to +0.14 with
>occasional outliers
>This is the same kind of output as is illustrated in the documentation:
>What I am not sure about, and I can't find any clear explanation, is
>what these elements actually stand for? 
>I would have thought that one needed as a minimum both volume and
>frequency ie a two dimensional vector but as far as I can tell
>there is only one single vector.  I'm aware that this question is
>pushing the envelope of R help but...
>Thanks, Nick Wray
>R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

Sent from my phone. Please excuse my brevity.

More information about the R-help mailing list