[LAD] Scopes & RMS

Fons Adriaensen fons at linuxaudio.org
Wed Dec 21 15:38:23 UTC 2011


On Wed, Dec 21, 2011 at 04:22:48PM +0100, Robin Gareus wrote:
 
> http://kokkinizita.linuxaudio.org/linuxaudio/downloads/yass-0.0.2.tar.bz2
> or http://xoscope.sourceforge.net/

If there are > 1 samples per pixel yass finds the min and max samples
for each pixel and draws a vertical line from min to max.
One refinement of this (not done in yass): to compute min and max
for the next pixel, don't reset the current values but just swap
them. This ensures that lines are connected in all cases.

If you have more than one pixel per sample, and your app is a scope
(rather than just a informative waveform display in a DAW or so) you
have to resample. In a scope you have to upsample and interpolate
anyway to find the right trigger point.

Ciao,
 
-- 
FA

Vor uns liegt ein weites Tal, die Sonne scheint - ein Glitzerstrahl.




More information about the Linux-audio-dev mailing list