# Song

Core class used by a lot of components in Rhythm Engine which holds the basic song data

<table data-full-width="true"><thead><tr><th width="306">Field</th><th>Description</th></tr></thead><tbody><tr><td>AudioClip Clip</td><td>The audio clip to use for this song</td></tr><tr><td>float FirstBeatOffset</td><td>This offset should be used to delay the visual aspects of your game. As an example in a mania game, you would use this to delay the note press time (and not to add an offset to the input time)</td></tr><tr><td>bool Looping</td><td>Automatically loop the song after it's over. Setting this will automatically set the Loop property of the AudioSource to true</td></tr><tr><td>float BaseBpm</td><td>The BPM of the song. Used to calculate beat timing</td></tr><tr><td>List&#x3C;BpmChange> BpmChanges</td><td>The BPM changes of the song. Used to calculate beat timing</td></tr><tr><td>float FirstBeatOffsetInSec</td><td>First beat offset in seconds</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/core/song.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.
