(sorry Harry, I missed to CC the list)
On 12/21/2011 03:29 AM, Harry van Haaren wrote:
> Currently I'm taking every 50th sample, and drawing a line from the
IIRC ardour uses all audio samples and lets cairo do the scaling.
> My other question is about RMS, is calculating it in its literal sense
It depends on the use-case. A traditional analog scope does that. Well,
it is not true RMS but a low-pass filter.
>Or perhaps only taking every 5th sample?
Better take the min/max of all sample that fall on a single pixel on the
time-axis and draw a box (actually a vertical line if x is the time-axis).
> Resampling the signal from 44.1 or 48k to say 11025? I'm not really sure
25 (fps) (or actually: screen update-freq aka vblank-frequency)
multiplied by the width of display in pixels is more appropriate.
Linux-audio-dev mailing list