---
title: "Game Music Loop"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/nodetool/game/gamemusicloop
markdown: https://docs.nodetool.ai/nodes/nodetool/game/gamemusicloop.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/game/gamemusicloop.md
---

# Game Music Loop

**Type:** `nodetool.game.MusicLoop`

**Namespace:** `nodetool.game`

## Description

Fits a track to a game template's music slot: trims it to the target length and crossfades the end into the start so it loops without a click.
    audio, game, music, loop

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| audio | `audio` | The generated music track. | - |
| slot | `game_slot` |  | null |
| slot_id | `str` | The manifest slot this track fills, e.g. music.level. | `` |
| seconds | `float` | Target length from the manifest slot. | `60` |
| crossfade_ms | `int` | How much of the tail is blended into the head to close the loop. | `250` |
| trim | `bool` | Cut the track to the target length before closing the loop. | `true` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `audio` |  |
| fill | `dict` |  |

## Related Nodes

Browse other nodes in the [nodetool.game](./) namespace.
