Spectrum Good Plugin
Sebastian Dröge
sebastian at centricular.com
Wed May 18 12:39:03 UTC 2016
On Di, 2016-05-17 at 12:53 -0400, Cole Bush wrote:
> Interesting. First, sameplerate is the same as 1 / "interval",
> right?
It will generate a message every "interval" nanoseconds, but this
message will contain the average of multiple spectrums. The number of
samples per spectrum is controlled by the number of bands.
> For context, I am outputting this data onto a RGB matrix from my
> raspberry pi. Visually, it seems that an interval of 50 million
> nanoseconds is a good speed for the matrix's refresh rate. This would
> mean my sample rate is 20 Hz, correct? With 10 bands, would that make
> each band represent 1 Hz covering 0-10Hz?
If your samplerate is 20kHz, then you will have frequencies from 0 to
10kHz (the nyquist frequency is half the samplerate). Each band then
will be evenly spaced over that range, i.e.
0-1kHz
1-2kHz
2-3kHz
...
9-10kHz
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160518/130a6dda/attachment.sig>
More information about the gstreamer-devel
mailing list