<br><br><div class="gmail_quote">On Thu, Jun 17, 2010 at 10:41 AM,  <span dir="ltr"><<a href="mailto:fons@kokkinizita.net">fons@kokkinizita.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="im">On Thu, Jun 17, 2010 at 04:09:08AM -0400, Jeremy wrote:<br>
<br>
> Yes, I'll bet that's my problem. Is it because writing to the screen is high<br>
> bandwidth but high latency?   Or is it just not possible to draw anywhere<br>
> near every sample?<br>
<br>
</div>Plotting a waveform with 48kHz samples per second is not that<br>
difficult and it doesn't require HW acceleration or esoteric<br>
hardware.<br>
<br>
But *what* do you want to see ? Of one thing you can be sure:<br>
the information contained in 48k samples per second will<br>
overload the visual parts of your brain. If the waveform<br>
is more or less cyclic for some time, you can set a trigger<br>
level and display small fragments - that is what a scope<br>
is doing. In the other case the only thing that makes much<br>
sense is display longer fragments, and then the only info<br>
you get from this the amplitude envelope.<br>
<br>
Ciao,<br>
<font color="#888888"><br>
--<br>
FA<br>
<br>
O tu, che porte, correndo si ?<br>
E guerra e morte !<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Linux-audio-dev mailing list<br>
<a href="mailto:Linux-audio-dev@lists.linuxaudio.org">Linux-audio-dev@lists.linuxaudio.org</a><br>
<a href="http://lists.linuxaudio.org/listinfo/linux-audio-dev" target="_blank">http://lists.linuxaudio.org/listinfo/linux-audio-dev</a><br>
</div></div></blockquote></div><br><br>Well I'm interested in plotting two things:<br><br>1.  A single buffer of the audio<br>2.  The autocorrelation (and selected peak) of that same buffer.<br><br>This means about a thousand samples per window (although the goal is to increase it).  I'm only looking at periodic signals, or at least that's all I care about, so I can change the frequency until it's a harmonic of the buffer size.  On the other hand, the autocorrelation is almost constant, so that is also interpretable by me, even when refresh rate.<br>

<br>Now, assuming a 60 Hz refresh rate (which is what I believe my monitor has), and a buffer size of 1024 pixels, that would be  a throughput of 61440 samples per second.  More than the 48000 sampling rate.  So it seems that drawing every sample *is* a reasonable request.  But obviously a lower refresh rate would also satisfy my needs.<br>

<br>Thanks everyone for the suggestions of programs to look at.  It looks like I'm going to separate the drawing into another thread, although I am a little bit confused as to why that is necessary.  I'll probably copy something from jack.scope or meterscape, as they seem closest to what I want.<br>

<br>Jeremy<br>