Paint2Sound is a PB application for converting any .jpg or .bmp image or any picture you care to draw/paint, into a soundscape.
The principle is: each pixel row represents a frequency band. The application synthesizes sine waves for each pixel row with an instantaneous amplitude determined by the brightness of each pixel in the pixel row, and then sums together all the sine waves. User controls are provided for various parameters like sample rate, sound duration, frequency distribution across the pixel rows and the overall level in the mix of each sine wave.
I have provided the application source in the .zip file. Also in the .zip file are curvegadget.pbi and portaudio.pb and its associated dlls (the curvegadget.pbi and portaudio.pb are both includes in paint2soundv101.pb). Throw them all into a dir and execute paint2soundv101.pb.
Have tried it only Windows only. Also in the .zip is a compiled exe (if you just want to run it).
The application demonstrates quite a few things like additive synthesis, drawing/painting, synchronization of picture scanning with audio playback, how the curvegadget can be used, use of cubic bezier algorithm for audio processing, and so on
http://www.mediafire.com/?42bmg4ta32usut6
Here's a demo video I posted:
http://www.youtube.com/watch?v=GqAPurzHLXU
Paint2Sound Released
-
- Addict
- Posts: 1676
- Joined: Sun Dec 12, 2010 12:36 am
- Location: Somewhere in the midwest
- Contact:
Re: Paint2Sound Released
Wow man, this is really cool!
This could bring a whole new dimensions to making music, or at least coming up with interesting sounding samples to make music with
This could bring a whole new dimensions to making music, or at least coming up with interesting sounding samples to make music with

-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Paint2Sound Released
...I think Paint2Sound could be very handy for the game developers. Very clever stuff - like the demo movie too. Thanks for sharing. 

IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
- electrochrisso
- Addict
- Posts: 989
- Joined: Mon May 14, 2007 2:13 am
- Location: Darling River
Re: Paint2Sound Released
Thanks to Jeff Minter 
http://en.wikipedia.org/wiki/Psychedeli ... hesizer%29
and
http://en.wikipedia.org/wiki/Neon_%28li ... hesizer%29
And Me in French Forum : 16 Jan 2005
http://www.purebasic.fr/french/viewtopi ... t+des+mots

and V2 here : in 2008
http://www.purebasic.fr/french/viewtopi ... t+des+mots

http://en.wikipedia.org/wiki/Psychedeli ... hesizer%29
and
http://en.wikipedia.org/wiki/Neon_%28li ... hesizer%29
And Me in French Forum : 16 Jan 2005
http://www.purebasic.fr/french/viewtopi ... t+des+mots

and V2 here : in 2008
http://www.purebasic.fr/french/viewtopi ... t+des+mots
- electrochrisso
- Addict
- Posts: 989
- Joined: Mon May 14, 2007 2:13 am
- Location: Darling River