Contents

Wavefile › Apple Shortcuts

Measure files in a shortcut

Measure Audio returns each file’s peaks, loudness and format, so a shortcut can make decisions about files before it processes them.

Measure Audio returns one measurement for each file, with:

  • True Peak (dBTP) and Sample Peak (dBFS)
  • Integrated Loudness (LUFS-I)
  • Duration (Seconds), Sample Rate (Hz) and Channels
  • File Name

An ADM file’s loudness and true peak are measured on its 5.1 render, as in the Wavefile window.

Silent files have no peak values, and files whose loudness can’t be measured have no loudness value. Use an If action to check that a value exists before comparing it.

Example: normalise only loud files

  1. Measure Audio on the shortcut’s input.
  2. Repeat with Each measurement.
  3. If its Integrated Loudness (LUFS-I) is greater than −14, normalise the matching file.

Measure Audio returns measurements, not files. To process the same files afterwards, save the input in a variable first, and pass the variable to the next action.