1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

If your website took a shower, this is what it would sing

Discussion in 'BlackHat Lounge' started by HoNeYBiRD, Feb 28, 2010.

  1. HoNeYBiRD

    HoNeYBiRD Jr. VIP Jr. VIP

    Joined:
    May 1, 2009
    Messages:
    5,906
    Likes Received:
    7,140
    Gender:
    Male
    Occupation:
    Geographer, Tourism Manager
    Location:
    Ghosted
    The CodeOrgan analyses the "body" content of any web page and translates that content into music. The CodeOrgan uses a complex algorithm to define the key, synth style and drum pattern most appropriate to the page content.

    Code:
    http://www.codeorgan.com/
    Firstly, the CodeOrgan scans the page content and removes all characters not found in the musical scale (A to G), and then analyses the remaining characters to find the most commonly used "note". If this is an even number the page is translated into the major pentatonic scale of that particular note, it becomes minor if there is an uneven number.

    Secondly, the CodeOrgan defines which synthesizer to use. This is based upon the total number characters used on the webpage - there are currently 10 synthesizer effects and the one chosen is picked based upon the percentage of content.


    Lastly, the CodeOrgan selects a drum loop based upon the ratio of characters on the page versus the number of characters that are actually musical notes - there are currently 10 different drum loops to pick from.


    Enjoy!