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.

Audiovisual Ruffmix

Discussion in 'Made With Unity' started by sonicviz, Sep 29, 2010.

  1. sonicviz

    sonicviz

    Joined:
    May 19, 2009
    Posts:
    1,044
  2. MSylvia

    MSylvia

    Joined:
    May 19, 2009
    Posts:
    42
    I still cant get that to work. Ive tried klaymator14's sample code and i get nothing. I think I'm having a problem with refreshing. Only in the editor does it do anything and only while I click on the values that are getting updated. What are your import settings on your audio file?
     
  3. sonicviz

    sonicviz

    Joined:
    May 19, 2009
    Posts:
    1,044
    Standard 16bit 44k stereo wav files.

    It's pretty basic
    //Get the spectrum data
    float[] numArray = this.Audio.GetSpectrumData(this.numSamples, this.channel, FFTWindow.BlackmanHarris)

    numsamples 64, 128, 256, 512 etc
    Channel 0 or 1
     
  4. adriaanza

    adriaanza

    Joined:
    Jun 24, 2010
    Posts:
    41
    Been trying for a few hours now and the file at the URL is missing...
     
  5. sonicviz

    sonicviz

    Joined:
    May 19, 2009
    Posts:
    1,044
unityunity