<div dir="ltr">The second half makes sense, but i don't understand how to calculate the samplerate. <div><br></div><div><span style="font-size:12.8px">> It will generate a message every "interval" nanoseconds, but this</span><br style="font-size:12.8px"><span style="font-size:12.8px">> message will contain the average of multiple spectrums. The number of</span><br style="font-size:12.8px"><span style="font-size:12.8px">> samples per spectrum is controlled by the number of bands.</span></div><div><span style="font-size:12.8px"><br></span><div class="gmail_extra">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?<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">I appreciate your help.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 18, 2016 at 8:39 AM, Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class="">On Di, 2016-05-17 at 12:53 -0400, Cole Bush wrote:<br>
> Interesting. First, sameplerate is the same as 1 / "interval",<br>
> right? <br>
<br>
</span>It will generate a message every "interval" nanoseconds, but this<br>
message will contain the average of multiple spectrums. The number of<br>
samples per spectrum is controlled by the number of bands.<br>
<span class=""><br>
> For context, I am outputting this data onto a RGB matrix from my<br>
> raspberry pi. Visually, it seems that an interval of 50 million<br>
> nanoseconds is a good speed for the matrix's refresh rate. This would<br>
> mean my sample rate is 20 Hz, correct? With 10 bands, would that make<br>
> each band represent 1 Hz covering 0-10Hz? <br>
<br>
</span>If your samplerate is 20kHz, then you will have frequencies from 0 to<br>
10kHz (the nyquist frequency is half the samplerate). Each band then<br>
will be evenly spaced over that range, i.e.<br>
<br>
0-1kHz<br>
1-2kHz<br>
2-3kHz<br>
...<br>
9-10kHz<br>
<div class=""><div class="h5"><br>
--<br>
Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a><br>
<br>
</div></div><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div></div></div>