run_sweep
Run a swept-sine SPL measurement for acoustic analysis. Configure sweep length, frequency range, and output level; blocks until the measurement completes and returns the new data.
Instructions
Configure and run a swept-sine SPL measurement. Requires REW's audio input/output to be configured and a REW Pro license for API-triggered measurement. Blocks until the sweep completes and returns the new measurement.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the new measurement | |
| notes | No | Notes stored with the new measurement | |
| length | No | Sweep length in samples — longer is slower but higher signal-to-noise | 256k |
| endFreqHz | No | Sweep end frequency, Hz | |
| levelDbfs | No | Output level in dBFS (e.g. -12). Left unchanged when omitted. | |
| startFreqHz | No | Sweep start frequency, Hz |