# Add background music to your story

Source: https://knowledge.intractive.app/en/articles/music-and-sound

You can give your story background music that changes as visitors move through it. You set music on the block where it starts, in the canvas editor. The classic editor keeps the music a story already has, but you can't set or change music there.

## Add a song to a block

1. Open your story on the canvas.
2. On the block where the music should start, click the music note in the block's toolbar.\
   \[screenshot: a block's toolbar on the canvas with the music note visible\]
3. Under **Music from here**, select **Song**.
4. Upload an MP3 or M4A file, or pick one from the project's media library.
5. Set the song's volume.
6. Click **Listen** to hear it.\
   \[screenshot: Music from here with Song selected, the volume setting and Listen\]

A song can be up to 10 MB. There is no limit on its length. You can't delete a song that a block still uses: you see **This file is used in your content, so it can't be deleted. Open it to see where.**

The song plays from this block on, and loops until a block changes the music. On the canvas, each block where the song plays gets a band in the song's colour, and the block where it starts shows a chip with the song's name.

\[screenshot: the canvas with music bands under blocks and a song chip\]

## Change or stop the music later in the story

You only set music on the blocks where it changes. For one song over blocks 1 to 3 and another from block 4, set music on blocks 1 and 4 only.

On that block, click the music note again and choose from the three choices under **Music from here**:

- **Carry on**: whatever is playing keeps playing. Every block starts with this choice.
- **Song**: a new song starts here.
- **Stop**: the music fades out here.

When a block changes to a different song, the two songs crossfade. A song that comes back later picks up where it left off. If a block picks the song that's already playing, it carries on without restarting.

## Music on branches

Each branch carries whatever is playing into its own blocks. Paths can join again with different music playing. The block where they join then shows **Music depends on the path**. Give that block its own music to decide what plays from there.

\[screenshot: a block where two paths join, showing Music depends on the path\]

## Hear your story with music

Nothing plays in the builder while you edit. To hear the music, click **Preview** in the header.

## What visitors hear

Browsers only play sound after a tap, so nothing plays until the visitor first taps the story. A story with sound shows a sound button in the top bar. It reads **Turn sound on** before that first tap, then **Mute sound** or **Unmute sound**. The visitor's choice is remembered.

\[screenshot: a story on a phone with the Turn sound on button in the top bar\]

Intractive evens out loudness. A file that's much louder than the rest plays quieter, so a loud song doesn't jump out after a quiet one. The loudness is measured when you upload the file. The volume you set for each song works on top of that.

Music gets quieter while a video, or an **Audio** block in an older story, plays with sound, and comes back after. Sound pauses when the visitor leaves the page, and picks up when they return.

> [!NOTE]
> **Note:** On older iPhones, music starts and stops without fading, and pauses under a video instead of getting quieter. Visitors still hear every song. On iPhones with iOS 17 or later, other apps' audio pauses when your story's sound first plays.
