hello forum! I looking for a way to export an array (a sound waveform) into a jpeg file. Any clue? Thanks
-
export array as JPEG
-
Hi,
I never heard of an automatic way of doing that, but here are some ideas:
-
Simply hit the Print Screen key in your keyboard, then open some image editor (GIMP, MS paint, Photoshop, etc.) and press Ctrl+V. You will obviously need to manually crop the array. On Linux, you can right click on the array, then click open (so only the array is opened), then press Ctrl+Alt+Print Screen so that only the current window (that is, the array itself) will be copied to the clipboard. This is by far the easiest solution, but it needs some manual tweaking from your side.
-
Export the audio contained in the array to another program which then would be able to create an image out of it. Sonic visualiser comes to my mind.
-
If you are familiar with some plotting programs, such as GNUplot, then you could save the array data in some text format and then use some script (which could even be called from within Pd) in order to automatically generate a nice graph from that information.
I hope some of these ideas inspire you to a solution.
Take care,
Gilberto -
-
thank you! i'll try to dig the option 2 & 3 and come back here later to debrief. Thanks again