Plugin screenshot thumbnail 1/1

Sound Level adds Twig helpers that estimate how loud a source is at a given distance, using the free-field inverse-square law with optional air absorption.

{{ soundLevelAt(150, 10, 100) }}      {# 150 dB at 10 ft -> 130 dB at 100 ft #}
{{ 150|soundLevelAt(10, 500) }}       {# filter form -> 116 #}
{{ soundLevelDistance(150, 10, 90) }} {# distance where it falls to 90 dB #}
{{ soundLevelTable(150, 10) }}        {# accessible <table> #}
  • soundLevelTable() outputs a <table> with <caption>, scope="col" and scope="row" headers, all text escaped. Options: distances, unit (ft/m), absorption (dB/km), precision, caption, class.
  • Every input is validated, with clear error messages.
  • Same formulas as the tested core behind the Train Horn decibel calculator; 45 PHPUnit tests.

Results are free-field estimates, not measurements and not a legal noise assessment.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Reviews

This plugin doesn't have any reviews.

Active Installs
0
Version
1.0.0
License
MIT
Compatibility
Craft 5
Last release
November 19, 2026