---
title: "timeline.placeMany: Place Sounds — Film kit command — Kition"
description: "Places several sounds as one undo step: each of `items` ({item, frame | seconds, gainDb or volume, fadeInFrames/fadeInSeconds, fadeOutFrames/fadeOutSeconds, durationFrames/durationSeconds}) goes on the first audio track with no clip in its span (a new track below the others when none has room), so sounds never overwrite each other. `alignPeak: true` starts the clip at frame − the sound's peak lag (its loudest sample, from the decoded audio), so a whoosh's or impact's hit lands on the frame; a head before 0 is dropped. Fades are Constant Gain audio transitions on the clip's edges. Answers `placed`: [{clips, audioTrack (\"A3\"), frame (clip start), peakFrame, peakLagFrames, gainDb}]."
canonical: "https://developer.kition.ai/docs/kits/film/commands/timeline.placeMany"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/film/commands/timeline.placeMany](https://developer.kition.ai/docs/kits/film/commands/timeline.placeMany)

# timeline.placeMany

**Place Sounds.** Places several sounds as one undo step: each of `items` ({item, frame | seconds, gainDb or volume, fadeInFrames/fadeInSeconds, fadeOutFrames/fadeOutSeconds, durationFrames/durationSeconds}) goes on the first audio track with no clip in its span (a new track below the others when none has room), so sounds never overwrite each other. `alignPeak: true` starts the clip at frame − the sound's peak lag (its loudest sample, from the decoded audio), so a whoosh's or impact's hit lands on the frame; a head before 0 is dropped. Fades are Constant Gain audio transitions on the clip's edges. Answers `placed`: [{clips, audioTrack ("A3"), frame (clip start), peakFrame, peakLagFrames, gainDb}].

- Kit: Film 0.1.0 (.kfilm); reference: [Film kit commands](https://developer.kition.ai/docs/kits/film.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | `object[]` | no |  |
| `tracks` | `string` | no | like auto |

## Call through film_run

```text
film_run {
  "path": "<file>.kfilm",
  "steps": [{ "command": "timeline.placeMany" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `items`, `tracks`. film_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "items": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "alignPeak": {
            "default": false,
            "type": "boolean"
          },
          "durationFrames": {
            "description": "one of several alternative parameters",
            "type": "number"
          },
          "durationSeconds": {
            "description": "one of several alternative parameters",
            "type": "number"
          },
          "fadeInFrames": {
            "description": "one of several alternative parameters",
            "type": "number"
          },
          "fadeInSeconds": {
            "description": "one of several alternative parameters",
            "type": "number"
          },
          "fadeOutFrames": {
            "description": "one of several alternative parameters",
            "type": "number"
          },
          "fadeOutSeconds": {
            "description": "one of several alternative parameters",
            "type": "number"
          },
          "frame": {
            "description": "one of several alternative parameters",
            "type": "integer"
          },
          "gainDb": {
            "default": 0,
            "description": "one of several alternative parameters",
            "type": "number"
          },
          "item": {
            "description": "an id",
            "type": "integer",
            "x-khp-role": "object",
            "x-khp-types": [
              "Item"
            ]
          },
          "seconds": {
            "description": "one of several alternative parameters",
            "type": "number"
          },
          "volume": {
            "description": "one of several alternative parameters",
            "type": "number"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "tracks": {
      "default": "auto",
      "description": "like auto",
      "type": "string"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/film-darwin-arm64@0.1.0 and the kit itself (film_commands through @kition/cli@0.1.1, built from KitionAI/kition-film@375db59).
