// Update is called once per frame void Update() { // Get the Root Mean Square of the frequencies float scale = AudioInput.CalculateRMS(FilterType.Bypass); // scale the circle accordingly scale = scale * 25; transform.localScale = new Vector3(scale, scale, scale); // read the frequencies in to the array AudioInput.RetrieveWaveform(FilterType.Bypass, _samples); }