Skip to content

Turn an image into a sequence of sounds using a Hilbert Curve.

License

Notifications You must be signed in to change notification settings

TheCrowned/Hilbert-Image-to-Sound

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hilbert-Image-to-Sound

Turn an image into a sequence of sounds using a Hilbert Curve.

Works with black and white, 256x256 square images. Uses notes from B7 (3951Hz) to A2 (110Hz), a total of 52 tones.

You can convert any image into a supported one through the following ImageMagick command: convert input.jpg -resize 256x256! -colorspace Gray output.jpg

To use it, enter file name on line 34 of hilbert.cpp, compile it and run it. It will write an output.wav file in the same folder. It does not fail nicely if the input does not exist (seg. fault), so be sure to enter that.

To compile on GNU/Linux, simply use g++ *.cpp

About

Turn an image into a sequence of sounds using a Hilbert Curve.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published