Recorded a song and used it to generate mathematical patterns

Discussion in 'Recording Studio' started by DaybridgeGhost, Sep 24, 2017.

  1. DaybridgeGhost

    DaybridgeGhost SS.org Regular

    Messages:
    19
    Likes Received:
    13
    Joined:
    Aug 4, 2017
    I fed my music into some mathematical equations and got some cool patterns.



    For those interested, the equations I used were Gray Scott reaction-diffusion equations. They take the following form:

    [​IMG]

    I wrote a program with the equations above to generate evolving patterns that depend on the dynamics of a musical piece.

    In other words, my music file alters the parameters of these equations over time, and this gives rise to interesting visuals that are in sync with the music. I then overlaid some video footage with the generated visuals to create a music video.

    Cheers!
     
    bostjan, schwiz and odibrom like this.
  2. bostjan

    bostjan MicroMetal Contributor

    Messages:
    13,403
    Likes Received:
    1,459
    Joined:
    Dec 7, 2005
    Location:
    St. Johnsbury, VT USA
    Interesting.

    I can't access yourube videos here, so maybe you explain in the video, but what sort of boundary values are you using, and how does the music parse into the variables of the forumla?

    Are you using FEA?
     
  3. DaybridgeGhost

    DaybridgeGhost SS.org Regular

    Messages:
    19
    Likes Received:
    13
    Joined:
    Aug 4, 2017
    I am using periodic boundary conditions. In addition to the reaction-diffusion equations, there are randomly moving particles that act as chemical sources. The music's drum levels are threshholded to change the feed rate (f) and movement of stochastic particles. Integration is done via good ol' forward Euler's method on a grid composed of squares.
     
    Rational Gaze and bostjan like this.
  4. Rational Gaze

    Rational Gaze LithiumDawn Voicebox

    Messages:
    483
    Likes Received:
    167
    Joined:
    Aug 14, 2007
    Location:
    Washington, DC
    I don't understand half the language in here, but I know that was dope. Well done sir :)
     
  5. DaybridgeGhost

    DaybridgeGhost SS.org Regular

    Messages:
    19
    Likes Received:
    13
    Joined:
    Aug 4, 2017
    Thanks mate, glad you like it!
     

Share This Page