Engineering
Distance sound attenuation API
Applies the inverse-square law for a point source, ΔL = 20·log10(d1/d2) (~6 dB per doubling), to find the sound level at a new distance. Answers 'How much quieter is it twice as far away?', 'What dB level reaches the receiver at this distance?'.
Price$0.02per request
MethodPOST
Route/v1/engineering/inverse-square-attenuation
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
acousticsinverse-squareattenuationdistancedecibelpoint-sourcenoisephysics
API URL
Integration docshttps://x402.hexl.dev/v1/engineering/inverse-square-attenuationExample request
{
"referenceLevelDb": 100,
"referenceDistanceM": 1,
"targetDistanceM": 2
}Example response
{
"targetLevelDb": 93.9794,
"attenuationDb": 6.0206,
"distanceRatio": 2,
"interpretation": "Level falls from 100 dB at 1 m to 94 dB at 2 m (−6.02 dB)."
}Input schema
{
"type": "object",
"required": [
"referenceLevelDb",
"referenceDistanceM",
"targetDistanceM"
],
"properties": {
"referenceLevelDb": {
"type": "number",
"description": "Known level at reference distance (dB)",
"examples": [
100
]
},
"referenceDistanceM": {
"type": "number",
"description": "Reference distance (m)",
"examples": [
1
]
},
"targetDistanceM": {
"type": "number",
"description": "Target distance (m)",
"examples": [
2
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}