On Fri, 10 Feb 2012 19:22:39 +0000, Jasen Betts wrote:
That's very close to what I did - cat /dev/urandom > randomfile. Then I
imported that as a raw file into audacity, converted it to ogg format.
When I looked at its spectrum, it was suspiciously flat all the way from
zero to 20kHz, where it fell off at > 30 dB per octave. Just a little
*too* perfect. I go by the maxim that, if everything goes according to
plan, you've obviously overlooked something.
Actually, the spectrum of random-amplitude samples should be
flat. So I'd be more suspicious of the roll-off above 20
kHz. I haven't delved into ogg format, but my guess is
that it may be rolling things off above the audio range.
Note that when an FFT generates a spectrum, it doesn't
really know anything about frequency... it just operates on
a set of numbers. If the numbers are random, the resulting
spectrum is flat. The frequency interpretation comes by
knowing the sample rate of the raw data values.
If audacity can't look at the spectrum of the raw data, can
you convert to WAV instead of ogg? WAV is just a simple
header in front of the raw data... it doesn't actually
convert anything. The header holds the sample rate info and
related stuff.
Best regards,
Bob Masta
DAQARTA v6.02
Data AcQuisition And Real-Time Analysis
www.daqarta.com
Scope, Spectrum, Spectrogram, Sound Level Meter
Frequency Counter, FREE Signal Generator
Pitch Track, Pitch-to-MIDI
Science with your sound card!