Spectrum Good Plugin

Cole Bush bush.c at husky.neu.edu
Wed May 18 13:51:25 UTC 2016


The second half makes sense, but i don't understand how to calculate the
samplerate.

> 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.

I would like to determine the exact samplerate so i can then find the width
of each band. Is there a way to find what the value of "multiple spectrums"
is? I am getting 20 messages a second, x spectrums a message, and 100 bands
per spectrum. If i multiply these, i should get the samplerate, correct?

I appreciate your help.


On Wed, May 18, 2016 at 8:39 AM, Sebastian Dröge <sebastian at centricular.com>
wrote:

> 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
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160518/e9228568/attachment.html>


More information about the gstreamer-devel mailing list