# Play sound

> Add BGM and a sound effect and play them

Play quiet BGM in the library, and ring the bell on the door with a sound effect.

## Add sounds to the assets

On the Assets screen, choose "BGM" on the left and add `bgm/quiet_night.wav`, then choose "Sounds" and add `se/chime.wav`.

![The Assets screen with the BGM and sound effect added.](/shots/en/t5-assets.webp)

## Play BGM

1. In "Script," select the `#start` block.
2. Double-click "BGM" in the parts panel.
3. Choose `quiet_night.wav` for `file`, and enter 40 for `volume`.

![The BGM part. Set file and volume.](/shots/en/t5-bgm.webp)

BGM loops until you stop it. To stop it, use `@stop-bgm`.

## Play a sound effect

Select the second narration line, add the "Sound" part, and choose `chime.wav` for `file`. Then add one more line of narration after it.

![The Sound part.](/shots/en/t5-se.webp)

## In code

```
# start
@bgm quiet_night.wav volume=40
@bg library.webp
After school, the library was quieter than usual.
By the returns shelf stood a girl I had never seen before, with an armful of books.
@se chime.wav
The bell on the door gave a small ring, and the girl looked up.
```

Check the sound in a test play. "Mute" in the preview silences sound only while you edit.
