Paint2Sound Released

Developed or developing a new product in PureBasic? Tell the world about it.
doctornash
Enthusiast
Enthusiast
Posts: 130
Joined: Thu Oct 20, 2011 7:22 am

Paint2Sound Released

Post by doctornash »

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
Zach
Addict
Addict
Posts: 1676
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: Paint2Sound Released

Post by Zach »

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 8)
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Paint2Sound Released

Post by IdeasVacuum »

...I think Paint2Sound could be very handy for the game developers. Very clever stuff - like the demo movie too. Thanks for sharing. 8)
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
electrochrisso
Addict
Addict
Posts: 989
Joined: Mon May 14, 2007 2:13 am
Location: Darling River

Re: Paint2Sound Released

Post by electrochrisso »

8) Thanks for sharing. :)
PureBasic! Purely the best 8)
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Re: Paint2Sound Released

Post by dobro »

Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
User avatar
electrochrisso
Addict
Addict
Posts: 989
Joined: Mon May 14, 2007 2:13 am
Location: Darling River

Re: Paint2Sound Released

Post by electrochrisso »

Thanks for links Dobro, very interesting too. :)
PureBasic! Purely the best 8)
Post Reply