# How to generate waveform or image of entire sound file?

**URL:** <https://discourse.processing.org/t/how-to-generate-waveform-or-image-of-entire-sound-file/7405>\
**Category:** Libraries\
**Created:** [January 11, 2019, 2:32am UTC](https://discourse.processing.org/t/how-to-generate-waveform-or-image-of-entire-sound-file/7405 "2019-01-11T02:32:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkomforty](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tkomforty/32/3202_2.png) [@tkomforty](https://discourse.processing.org/u/tkomforty)\
**Post date:** [January 11, 2019, 2:32am UTC](https://discourse.processing.org/t/how-to-generate-waveform-or-image-of-entire-sound-file/7405/1 "2019-01-11T02:32:59Z")

</div>

I am fairly comfortable with _real-time_ audio visualizers. However, I am wondering how to go about coding something that would pre-read the whole audio file and generate a visualization based off that. Static instead of real time essentially. Any pointers?

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [January 11, 2019, 4:12am UTC](https://discourse.processing.org/t/how-to-generate-waveform-or-image-of-entire-sound-file/7405/2 "2019-01-11T04:12:09Z")

</div>

This should answer your question: [https://forum.processing.org/two/discussion/20672/how-to-draw-a-waveform-for-an-entire-sound-file](https://forum.processing.org/two/discussion/20672/how-to-draw-a-waveform-for-an-entire-sound-file)

Kf

---

<div class="post-metadata">

**Author:** ![tkomforty](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tkomforty/32/3202_2.png) [@tkomforty](https://discourse.processing.org/u/tkomforty)\
**Post date:** [January 11, 2019, 4:30am UTC](https://discourse.processing.org/t/how-to-generate-waveform-or-image-of-entire-sound-file/7405/3 "2019-01-11T04:30:42Z")

</div>

Thanks for that. Much appreciated!

---

<div class="post-metadata">

**Author:** ![jshaw3](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jshaw3/32/8336_2.png) [@jshaw3](https://discourse.processing.org/u/jshaw3)\
**Post date:** [March 8, 2020, 7:10pm UTC](https://discourse.processing.org/t/how-to-generate-waveform-or-image-of-entire-sound-file/7405/4 "2020-03-08T19:10:46Z")

</div>

This is another good sample for drawing a the waveform of an audio file: [https://forum.processing.org/one/topic/how-to-generate-a-simple-waveform-of-an-entire-sound-file.html](https://forum.processing.org/one/topic/how-to-generate-a-simple-waveform-of-an-entire-sound-file.html)
