openmixer — generated API reference
    Preparing search index...

    Function parseSavedTake

    • Narrow a parsed JSON document to a SavedTake, or undefined when it is not one.

      A GUARD, never a cast. take.json is an operator-visible file on local disk sitting beside gigabytes of audio, so a hand-edited or truncated sidecar is REFUSED at the read rather than flowing on as a well-typed value that fails somewhere downstream with a confusing error.

      The WHOLE document is checked, tracks included — unlike the session and scene guards, which validate the envelope and leave the opaque console body to the code that walks it. A take's body is a short list of scalars and every one of them is acted on: file is opened, rate gates playback, lengthFrames sizes the transport, channels decides how the file is read.

      Parameters

      • value: unknown

      Returns SavedTake | undefined