get_distortion
Retrieve total harmonic distortion (THD) and harmonic levels from a swept sine measurement. Use it to inspect distortion versus frequency for acoustic analysis.
Instructions
Get a measurement's distortion data (THD and harmonics) as a table. Only meaningful for measurements captured with distortion analysis (swept sine).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"measurement": "<measurement>"
},
"name": "get_distortion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ppo | No | Frequency resolution, points per octave | |
| unit | No | Distortion unit, e.g. 'percent' (default) or 'dBr' | |
| measurement | Yes | Measurement UUID (preferred — stable) or 1-based index (shifts when measurements are added/removed) |