Search Unity

react from specific frequency

Discussion in 'Audio & Video' started by Eric_Lin, Dec 26, 2014.

  1. Eric_Lin

    Eric_Lin

    Joined:
    Oct 29, 2014
    Posts:
    32
    Hi
    I've been doing some beats detection. Now I can detect beats, finally. I wanna ask how can make different gameobjects react while detecting specific frequency. For example, if I detect a sound range from 0-100hz I wanna adjust my first cube's scale, something like that. Your helps would be appreciated.
     
  2. MakeCodeNow

    MakeCodeNow

    Joined:
    Feb 14, 2014
    Posts:
    1,246
    Use GetSpectrumData, which does an FFT to get the amplitude of the signal at different frequency bands.
     
    Eric_Lin likes this.