> For the complete documentation index, see [llms.txt](https://bennykok.gitbook.io/rhythm-game-starter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bennykok.gitbook.io/rhythm-game-starter/hierarchy-overview/song-manager.md).

# Song Manager

### Overview

![](/files/-M7D6El6BvFX3FAwRInn)

### Playing song via code

Reference your `SongManager` as a variable and invoke the `PlaySong` function to pass in your `SongItem`

```csharp
void SomeMethod() {
    ...
    songManager.PlaySong(songItem);
    ...
}
```

### Song controls

To pause playing the song.

```csharp
void SomeMethod() {
    ...
    songManager.PauseSong();
    ...
}
```

{% hint style="warning" %}
When pausing the song, the note will also be paused in the scene, util you resume.
{% endhint %}

To resume the song.

```csharp
void SomeMethod() {
    ...
    songManager.ResumeSong();
    ...
}
```

To stop the song.

```csharp
void SomeMethod() {
    ...
    songManager.StopSong();
    ...
}
```
