Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Music Visualizer

Discussion in 'Made With Unity' started by Jason_DB, Jun 13, 2012.

  1. Jason_DB

    Jason_DB

    Joined:
    Nov 30, 2008
    Posts:
    495
    Hey Guys!

    Just wanted to show off a little visualizer I put together the other day. It uses the frequency spectrum and output data of an audio track to modify a line renderer. It then applies some smoothing and other effects (like combining it with a volume-based sine wave) to give it the pulsing, liquid-like effect and smooth out some of the uglier noise jumps. Add in some post-processing to make it flashy and neon, random rotation, and cycling color schemes and you have yourself a visualizer!

    I'm pretty happy with how it came out - check out the samples I made with a couple of songs:
    Little Secrets (Passion Pit)
    Electric Feel (MGMT)
    Can't Stop (Flux Pavilion)
    Good Feeling (Flo Rida)

    You can download the code here (includes some image effects by default).
     
  2. tatelax

    tatelax

    Joined:
    Feb 4, 2010
    Posts:
    1,168
    This is so awesome! Thank you for releasing this for free, love the things you guys make.
     
  3. ProjectOne

    ProjectOne

    Joined:
    Aug 9, 2010
    Posts:
    442
    nice, lovely to release it for free
    thanks
     
  4. henry96

    henry96

    Joined:
    Sep 28, 2011
    Posts:
    582
    This is awesome!!! Thank you!!!
     
  5. hellraizerhhh

    hellraizerhhh

    Joined:
    May 26, 2010
    Posts:
    619
    Pretty sweet and trippy, i like it
     
  6. Jason_DB

    Jason_DB

    Joined:
    Nov 30, 2008
    Posts:
    495
    Thanks everybody! I'm just hoping that someone will take this thing even further.
     
  7. Morning

    Morning

    Joined:
    Feb 4, 2012
    Posts:
    1,141
    That's very cool. A thanks from me too.
     
  8. SevenBits

    SevenBits

    Joined:
    Dec 26, 2011
    Posts:
    1,953
    What type of audio files does it accept?
     
  9. Jason_DB

    Jason_DB

    Joined:
    Nov 30, 2008
    Posts:
    495
    @SevenBits it just uses Unity's standard AudioSource.GetSpectrumData, so it should accept any format which works in Unity.
     
  10. coder8

    coder8

    Joined:
    Jan 28, 2010
    Posts:
    6
    Thanks for providing this, very handy
     
  11. liverolA

    liverolA

    Joined:
    Feb 10, 2009
    Posts:
    347
    awesome,you can improve this and make this in appstore!
     
  12. BazLevelUp

    BazLevelUp

    Joined:
    Jun 27, 2012
    Posts:
    36
    I create a new Project and imported your files, but I got an error :
    :( Do you have any idea ?
     
  13. keithsoulasa

    keithsoulasa

    Joined:
    Feb 15, 2012
    Posts:
    2,126
    Just delete that file , it wont work without pro anyway .

    THANK YOU DASTARDLY, when I have money I'll buy something from you like your FPS kit just to show my gratitude !
     
  14. OrbitusII

    OrbitusII

    Joined:
    Jul 4, 2011
    Posts:
    175
    Very nice resource! I've been trying to find and/or create something like this but I'm just not good enough with coding, so this is a good find! Thanks!
     
  15. SevenBits

    SevenBits

    Joined:
    Dec 26, 2011
    Posts:
    1,953
  16. Jason_DB

    Jason_DB

    Joined:
    Nov 30, 2008
    Posts:
    495
    I'm glad you guys like it! I might update it a bit to add some improvements/fix some problems I found in it. I'm not sure when I'll have the chance to finish it up and package it, though.
     
  17. Ahmedbenchedli

    Ahmedbenchedli

    Joined:
    Mar 1, 2013
    Posts:
    25
    Awesome, thanks a lot for releasing this for free :D
     
  18. essell

    essell

    Joined:
    Jul 5, 2013
    Posts:
    9
    This looks cool and it's awesome that you released it for free... but are there any instructions for how to use / integrate this, for newbs? :)
     
    KnightRiderGuy likes this.
  19. KnightRiderGuy

    KnightRiderGuy

    Joined:
    Nov 23, 2014
    Posts:
    514
    That code link appears to be no longer working is this still available anywhere?
     
    IronOG likes this.
  20. howdydudes2

    howdydudes2

    Joined:
    Jan 9, 2015
    Posts:
    1
    Hey man I really admire the visualizer you made and really wanted the song and visualizer. I got the song myslef easy but the code to your visualizer isn't working anymore just like zentaiguy said. If you could fix it that would be awesome and very appreciated.
     
    KnightRiderGuy likes this.
  21. CroHack97

    CroHack97

    Joined:
    Oct 26, 2014
    Posts:
    46
    Hey links are broken, can you share again?!
     
    drudiverse and KnightRiderGuy like this.
  22. PLL

    PLL

    Joined:
    Jul 15, 2013
    Posts:
    19
    Hi!

    The links are not working anymore :( any chance to get them back? :) Thanks!

     
    drudiverse and KnightRiderGuy like this.
  23. Xenuniter

    Xenuniter

    Joined:
    Jul 28, 2015
    Posts:
    27
    Hello,can someone post the code here?The link is down....
     
    kiaxseventh and drudiverse like this.
  24. eleon-games

    eleon-games

    Joined:
    Feb 19, 2015
    Posts:
    56
    Would be really nice, if somebody can reup. Thank you very much guys
     
  25. chuckbergeron

    chuckbergeron

    Joined:
    Jul 2, 2012
    Posts:
    1