Film kit command

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)
Changes the document
yes

Parameters

Parameters of timeline.placeMany
NameTypeRequiredDescription
itemsobject[]no
tracksstringnolike 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/[email protected] and the kit itself (film_commands through @kition/[email protected], built from KitionAI/kition-film@375db59). As data: commands.jsonl.