# AudioBand

Original concept of this class by Peer Play, <https://www.youtube.com/@PeerPlay>, modified by me.

\
A class that can be used to get the frequency bands of an audio source

## Methods

<table data-full-width="true"><thead><tr><th width="479">Method</th><th>Description</th></tr></thead><tbody><tr><td>AudioBand(BandCount bandCount)</td><td>Create a new instance of AudioBand with the specified band count</td></tr><tr><td>GetFrequencyBand(int bandIndex, bool buffered = false)</td><td><p>Get specified band's frequency<br><br>band - Index of a band you want to get the value of </p><p>buffered - Provides smoother falloff of values</p></td></tr><tr><td>GetAudioBand(int bandIndex, bool buffered = false)</td><td>Get specified band's normallized frequency (0 to 1)<br><br>band - Index of a band you want to get the value of <br>buffered - Provides smoother falloff of values</td></tr><tr><td>GetAmplitude(bool buffered = false)</td><td>Get the total amplitude of the audio source<br><br>buffered - Provides smoother falloff of values</td></tr><tr><td>Update(Action&#x3C;float[]> getSamples)</td><td>Update the band values.<br><br>getSamples - A delegate that assigns samples from AudioSource.GetSpectrumData</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rhythm-engine.gitbook.io/rhythm-engine/docs/extensions/audiobandlistener/audioband.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
