# svgWaveform

**URL:** <https://forum.cabbageaudio.com/t/svgwaveform/2821>\
**Category:** Cabbage recipes\
**Created:** [19 August 2021 15:31 UTC](https://forum.cabbageaudio.com/t/svgwaveform/2821 "2021-08-19T15:31:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [19 August 2021 15:31 UTC](https://forum.cabbageaudio.com/t/svgwaveform/2821/1 "2021-08-19T15:31:19Z")

</div>

Yet another example! I set out wanting to build a simple scrolling waveform viewer, but Csound’s lack of push and pop operations for arrays or tables made something that should be very simple to do quite tricky. So in the end I came up with this solution. It’s not exactly sample accurate, but looks nice, and isn’t a drain on the CPU 🙂

[svgWaveform.csd](https://forum.cabbageaudio.com/uploads/short-url/byz7ojXCVbMpjRd4Te3QzszuHSw.csd) (1.7 KB)
