# ed studio edit audio

> ed studio edit audio in the Edith ed command line reference. Back to ed studio · All CLI commands

- Canonical URL: https://getedith.pro/docs/cli/studio/edit-audio
- Updated: 2026-12-02

[Back to `ed studio`](https://getedith.pro/docs/cli/studio) · [All CLI commands](https://getedith.pro/docs/cli)

Analyze a native project audio or video asset, or an independent audio track, without opening the app. The default
subcommand is `analyze`. Audio-track offsets and loops are not inferred.

## `ed studio edit audio analyze`

Measures waveform energy and transients using native audio decoding. Tempo is an
optional interval-consistency estimate, not a confirmed musical beat grid.

```sh
ed studio edit audio analyze demo.openscreen --asset ASSET_ID --json
ed studio edit audio analyze demo.openscreen --asset ASSET_ID \
  --source-in 1 --source-out 3 --output-start 10 --playback-rate 2 \
  --fps 60000/1001 --json > analysis.json
jq '.markerDocument' analysis.json > markers.json
ed studio edit markers import demo.openscreen --input markers.json --json
```

| Option | Meaning and default |
| --- | --- |
| `--asset ID` | Required project audio/video asset ID or audio-track ID. Tracks resolve their referenced source asset. Still images are rejected. Processed source audio takes precedence over the original URL. |
| `--sensitivity N` | Transient sensitivity from 0 to 1; default 0.5. |
| `--refractory-seconds N` | Refractory duration in seconds; default 0.08. |
| `--minimum-spacing-seconds N` | Minimum transient spacing in seconds; default 0.15. |
| `--maximum-waveform-bins N` | Even limit from 2 to 2048; default 2048. |
| `--maximum-transients N` | Limit from 1 to 10000; default 10000. |
| `--source-in N` | Inclusive source-range start in seconds. |
| `--source-out N` | Exclusive source-range end in seconds, within decoded audio. |
| `--output-start N` | Nonnegative output start in seconds. |
| `--playback-rate N` | Source-to-output rate from 0.05 to 20. |
| `--fps N/D` | Explicit rational output FPS; an integer is also accepted. |
| `--project-fps` | Validated saved project FPS, otherwise native composition FPS. |
| `--json` | Structured runtime errors; successful results are always JSON. |

Supply all four mapping options and exactly one FPS choice together, or omit mapping
and FPS entirely. Mapping uses
`outputStartSeconds + (sourceSeconds - sourceInSeconds) / playbackRate`.
Empty projects without saved FPS require explicit `--fps`.

Analysis decodes the complete source file in source time, regardless of the track's
output placement, offset, playback rate, loop, mute or gain. Mapping is explicit and
its source range must fit the actual decoded duration, including when processed audio
is shorter than the original. The report's `assetID` preserves the requested asset or
track ID.

The version 1 report contains `assetID`, `sourcePath`, `durationSeconds`,
`samplePositionUnit: "source_samples"`, `sampleRateUnit: "Hz"`, and `analysis`.
Analysis includes `sampleRate`, `sampleCount`, waveform bins (`startSample`,
`sampleCount`, `peak`, `meanSquare`), transients (`sample`, `strength`),
`transientsTruncated`, and optional `tempoEstimate`. With mapping requested, it also
returns `mapping`, `frameRate`, and an importable version 1 `markerDocument`.

Analysis is read-only. Runtime failures return `{version, error: {code, message}}`
on stderr with `--json`. MCP tool `edith_studio_edit_audio_analyze` accepts the same
CLI arguments in its `arguments` array, with a 300-second deadline and 4 MiB output
limit.

See [output-frame markers](https://getedith.pro/docs/cli/studio/edit-markers) for editing and interchange.

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
