Images to Audio
By Donna Jones
Outline
Image Input
Mathematical Calculations
Audio Output
Image Input
Take an image that is sent
to the Blackfin’s memory
Find its red, green, and
blue values
red = (rmask &
imgInput[0]) >> 10;
green = (gmask &
imgInput[0]) >> 5;
blue = bmask &
imgInput[0];
Mathematical Calculations
Find frequency of the lightwave and then map it to
sound frequency
Use these values in conjuction with the RGB values
from the image
Use: r = 2*3.14*(fsr/FS)*(t+1);
g = 2*3.14*(fsg/FS)*(t+1);
b = 2*3.14*(fsb/FS)*(t+1);
output =
((red*10000)*sinf(r*t))+((green*10000)
*sinf(g*t))+((blue*10000)*sinf(b*t));
Audio Output
The audio is outputted from the formul
iChannel0LeftOut = indivOutput;
iChannel0RightOut = indivOutput;
Issues
Can not compute an entire 64x64 image at
once, there is a delay causing a popping
sound
Final product only analyzes one pixel, but
could maybe be expanded to an entire
picture if given more time