Documentation sections
Audio Delay & Echo Time Calculator
POSThttps://rftools.io/ api/ py/ v1/ calculate
Slug audio-delay-time. Calculate audio delay time in milliseconds from BPM and note value — quarter, eighth, dotted, triplet. Also computes acoustic propagation delay from speaker distance for live sound alignment.
Inputs
Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.
| Name | Unit | Range | Default | Description |
|---|---|---|---|---|
| bpmnumber | bpm | 20 … 300 | 120 | Tempo (BPM) |
| noteValuenumber | none | at least 1 | 4 | Note Division |
| distancenumber | m | at least 0 | 10 | Speaker Distance |
| speedOfSoundnumber | m/s | 300 … 360 | 343 | Speed of Sound |
Outputs
Returned in values, by key. A value that is unbounded or undefined is null.
| Field | Unit | Description |
|---|---|---|
| beatMs | ms | Quarter-Note Delay |
| noteDelayMsheadline | ms | Selected Note Delay |
| propagationMs | ms | Propagation Delay |
Calling it
- Calculate: one call, the request and response in full, and its errors.
- Batch: this calculator with others, or a sweep, in one request.
- Solve for a target: the value of one input that brings an output to a target.