track_get_peak
Measure track peak levels in dB and linear gain to identify clipping and compare mix levels. Requires playback for accurate readings.
Instructions
Read instantaneous peak level from a track's meter (L + R channels).
Returns peak in both linear gain (0-1+) and dB (-144 to +12 or so). Only meaningful DURING playback — REAPER's meters only report when audio is passing through. Start playback, wait a moment, then read.
Useful for: checking if a track is clipping, comparing levels between tracks, verifying a mix isn't too hot.
Returns:
{peak_l_db, peak_r_db, peak_max_db, peak_l_linear, peak_r_linear}
Args: track_index: 0-based track index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes |