Documentation sections
ADC Bit Depth to Dynamic Range
POSThttps://rftools.io/ api/ py/ v1/ calculate
Slug audio-adc-snr. Calculate the theoretical SNR and dynamic range of an audio ADC from its bit depth, and the improvement from oversampling.
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 |
|---|---|---|---|---|
| bitDepthnumber | bits | 1 … 32 | 24 | Bit Depth |
| oversamplingRationumber | × | at least 1 | 1 | Oversampling Ratio |
Outputs
Returned in values, by key. A value that is unbounded or undefined is null.
| Field | Unit | Description |
|---|---|---|
| theoreticalSnr | dB | Theoretical SNR |
| oversamplingGain | dB | Oversampling Gain |
| totalSnr | dB | Total SNR |
| dynamicRangeheadline | dB | Dynamic Range |
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.