Welcome to Fractal Forums

Fractal Art => Fractal Music => Topic started by: Tater on January 28, 2013, 10:57:02 PM




Title: Fractals to sound
Post by: Tater on January 28, 2013, 10:57:02 PM
Here is an example of a fractal to sound http://kernsholler.net/Fractals/2BulbMovie1.wmv (http://kernsholler.net/Fractals/2BulbMovie1.wmv) treating the picture as a spectrograph. This was done in Matlab using an m file like this

function signal = imagetosignal(path, format)

    % Read in the image and make it symmetric.
    image = imread('Eaton.png');
    image = [image; flipud(image)];

    [row, column] = size(image);
    signal = [];

    % Take the ifft of each column of pixels and piece together the results.
    for i = 1 : column

       spectrogramWindow = image(:, i);
       signalWindow = real(ifft(spectrogramWindow));
       signal = [signal; signalWindow];

    end

end


followed by saving the wave

wavwrite(ans,48000,'Power2Bulb.wav');

The movie was made in Movie Makler, and you have to save the image (in this case Eaton.png) as grayscale for Matlab to deal with it. What you hear is the sum of sine waves of frequency determined by pixels left (low) to right (high) with time going top to bottom. The amplitude of the Fourier modes is determined by the grayscale level of the pixel.


Title: Re: Fractals to sound
Post by: eiffie on January 29, 2013, 05:47:31 PM
I like the idea but I would rather you made a fractal that produced a more realistic spectrograph so you could hear the fractal formula.


Title: Re: Fractals to sound
Post by: kram1032 on January 30, 2013, 10:52:17 AM
projecting a lit 3D object onto a 2D plane, biasing it all by using a colored object rather than a directly uniform-white one, and later throwing away all the color information to interpret it all as a spectrogram?
That seems highly artificial to me.
Nice. But artificial.