Search Unity

FFT Audio Visualization Video Tutorial

Discussion in 'Audio & Video' started by PeerPlay, Sep 22, 2016.

  1. PeerPlay

    PeerPlay

    Joined:
    May 10, 2015
    Posts:
    65
    I have been working hard on creating an extensive video tutorial series on how to create your own Audio Visualizer in Unity C#.

    Learn how to code your own music visualizer using c#.
    In these series you will learn how to:
    • Use Fast Fourier Transform (FFT)
    • Visualize music into gameobjects
    • Scripting buffers for visualisation
    • Applying scripts to models, lights, transforms, camera, and shaders.
    If you have any questions, or additions to this tutorial, feel free to reply. I'm hoping you will find this tutorial helpful.
    I haven't seen an extensive tutorial on this subject yet, so I decided to share my knowledge for free, so that you all may learn, and create more awesome stuff!

    Source files download: http://www.peerplay.nl/tutorials/peerplay-AudioVisTutPart1-source.zip


    Part 0 - Result


    Part 1 - FFT/Spectrum Theory


    Part 2 - GetSpectrumData in Unity


    Part 3 - Visualize 512 samples


    Part 4 - Eight Frequency Bands


    Part 5 - Adding Buffers
    https://www.youtube.com/watch?v=lEUuC3LQnzs (click link for video)

    Part 6 - Ranged Usable Values
    https://www.youtube.com/watch?v=QJCipD3YEE8 (click link for video)

    Part 7 - Get Average Amplitude
    https://www.youtube.com/watch?v=EAjNZJ8G0Hs (click link for video)

    Part 8 - Audio Profile
    https://www.youtube.com/watch?v=7ZpUVBpThBg (click link for video)

    Part 9 - Stereo SpectrumData
    https://www.youtube.com/watch?v=KqVsu07oAEM (click link for video)

    Part 10 - 64 Audio Bands
    https://www.youtube.com/watch?v=l77pAKrKe5s (click link for video)
     
    Last edited: Mar 18, 2017
    krougeau, chelnok, Jaytheway and 4 others like this.
  2. tng2903

    tng2903

    Joined:
    Apr 8, 2013
    Posts:
    41
    Thank you for the series, really helpful for newbies like me :D
     
  3. chaeljc

    chaeljc

    Joined:
    Oct 18, 2016
    Posts:
    1
    I am relatively new to Unity, my interest is not so much in creating games but in creating 3D Music Video Experiences that can be explored in virtual reality via the likes of the oculus rift.

    so with regard to your audio viz tutorial above i would just like to say....

    ThankYouThankYouThankYouThankYouThankYouThankYouThankYouThankYouThankYouThankYouThankYouThankYouThankYouThankYouThankYouThankYouThankYouThankYouThankYouThankYouThankYouThankYouThankYouThankYouThankYouThankYou!!!!

    and may i add...

    ManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyManyMany THANKS!

    it is very much appreciated.

    Could i just say, if you were ever to continue or expand on the audio viz tutorial, a couple of things I personally would really love to under stand how to do (of even if possible ) are listed below. All related to changing objects to music / input that i have found very difficult to even start to learn about on the ww etc. hopefully other audo viz fans would find useful too.

    -------------------
    twisting / warping / distorting meshes for example walls flooring ceilings etc to music

    changing the colour of an object depending for example on the amplitude of a piece of music spectrum... eg imagine a dark green cube that when a beat is sent to it, it grows very tall with the end that is moving up into the air getting brighter in colour / changes.. so for example when it is at its tallest, the part of the object fixed to the ground is still dark green, but as you travel up along the lengh of the object the colour gradually changes so that at the very top it is a bright glowing yellow. as the objects height collapses again it gradually returns to its original colour.

    Additionally can the texture on the object graduially change along the length in a similar way too.. so for example when collapsed as a cube is looks say rusty n rough... but when fully extended the top end has gradually changed to a glassy semi transparent texture.

    Its really all about shifting warping moving changing objects position shape colour and textures to music or other input.

    :-D
    -------------------

    AnyHoo,

    regardless of the wish list,

    ManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanksManyThanks

    for taking the time and trouble to do and share

    Kinds Regards

    Michael
     
  4. PeerPlay

    PeerPlay

    Joined:
    May 10, 2015
    Posts:
    65
    I just uploaded a new part to the tutorial! Cheers!



    More will follow, once I have more time :)
     
  5. PeerPlay

    PeerPlay

    Joined:
    May 10, 2015
    Posts:
    65
    Update: Another part added to the series!
     
    ikemen_blueD likes this.
  6. PeerPlay

    PeerPlay

    Joined:
    May 10, 2015
    Posts:
    65
    I just uploaded a new part of the tutorial! This time on Stereo Spectrumdata.
     
  7. xiginano

    xiginano

    Joined:
    Feb 13, 2015
    Posts:
    2
    Thanks so much for making and sharing, great series!
     
  8. PeerPlay

    PeerPlay

    Joined:
    May 10, 2015
    Posts:
    65
    I just uploaded part 10 of the Audio Visualization series! We are almost there though! This time about creating 64 audio bands. Enjoy!

     
  9. krougeau

    krougeau

    Joined:
    Jul 1, 2012
    Posts:
    456
    For anyone who thought PeerPlay was finished, think again! :D









    ...and they just keep coming! Thanks PeerPlay, you rock!
    \m/(>.<)\m/