# Imaging an audio file

**URL:** <https://discourse.processing.org/t/imaging-an-audio-file/25006>\
**Category:** Libraries\
**Created:** [October 29, 2020, 10:12am UTC](https://discourse.processing.org/t/imaging-an-audio-file/25006 "2020-10-29T10:12:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![humus](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@humus](https://discourse.processing.org/u/humus)\
**Post date:** [October 29, 2020, 10:12am UTC](https://discourse.processing.org/t/imaging-an-audio-file/25006/1 "2020-10-29T10:12:56Z")

</div>

Hi, I would like to realise these things with Processing after importing an audio file of my voice registered (or in real time):

1. Realise a video  
1.1. display in a window the spectrogram with colors (for the amplitude) istant per instant during the audio speech (so realize a video on the spectrogram during the time);  
1.2. save and export the video realized (e.g. in .mp4 o .wav).

2. Realise an image  
2.1 display a 2D image of the entire spectrogram with colors in CMYK  
2.2 save and export the image realized (e.g. in .jpeg).

3. Realise a 3D model of the spectrogram with colors  
3.1 display a 3D model of the entire spectrogram starting from a form to be set (e.g. a globe);  
3.2 save and export the image realized (e.g. in .jpeg or a model file to be printed with a 3D printer).

In addition, for every instant (e.g. 0.1 milliseconds), I would like to create an array of amplitudes, frequencies and phases to be saved as a data table to be used in a second step.

Many thanks

Best regards  
Humus

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [October 29, 2020, 11:20am UTC](https://discourse.processing.org/t/imaging-an-audio-file/25006/2 "2020-10-29T11:20:31Z")

</div>

this is very complex.

Is it a kind of exam or homework?

It sounds interesting!

Please look at minim library.

Looking forward to see your results.

Warm regards,

Chrisir

---

<div class="post-metadata">

**Author:** ![humus](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@humus](https://discourse.processing.org/u/humus)\
**Post date:** [February 3, 2023, 2:46pm UTC](https://discourse.processing.org/t/imaging-an-audio-file/25006/3 "2023-02-03T14:46:08Z")

</div>

I would like to realise it, Choisir, but I am so poor in coding stuffs, unfortunately…

Anyone could help me?
