Skip to main content

earshot_level 1.0.0 copy "earshot_level: ^1.0.0" to clipboard
earshot_level: ^1.0.0 copied to clipboard

Pure Dart sound level metering for earshot: A, C and Z weighting, Fast and Slow response, Leq and calibration.

Changelog #

1.0.0 #

  • First stable release. The public API follows semantic versioning from now on: breaking changes only in a major version (ADR 0021).
  • Breaking: rename Weighting to FrequencyWeighting, Response to TimeWeighting and Calibration to LevelCalibration, and LevelOptions.response to LevelOptions.timeWeighting. Response clashed with package:http and package:dio (ADR 0025).

0.1.0 #

  • LevelMeter now measures: it emits one LevelReading per non-empty PcmChunk at 16, 44.1 and 48 kHz.
  • A, C and Z frequency weighting per IEC 61672-1, within ±0.5 dB of the standard's design goals at ten frequencies from 31.5 Hz to 16 kHz (to 6.3 kHz at a 16 kHz sample rate, whose Nyquist frequency is 8 kHz).
  • Fast, Slow and Impulse time weighting.
  • Leq over the session, the last second and the last 60 seconds.
  • Calibration offset added to every level.
  • Without calibration, 0 dB is the level of a full-scale sine. Digital silence reads LevelReading.floorDb (-200 dB) plus the calibration offset, never negative infinity.
  • Breaking: LevelReading has two new required fields, leq1s and leq60s, which are part of ==, hashCode and toString.
  • Response has a new decayTimeConstant field (1.5 s for Response.impulse, equal to timeConstant otherwise).

0.0.1 #

  • Initial API preview.
0
likes
160
points
317
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Pure Dart sound level metering for earshot: A, C and Z weighting, Fast and Slow response, Leq and calibration.

Repository (GitHub)
View/report issues
Contributing

Topics

#audio #decibel #sound-level #dsp

License

MIT (license)

Dependencies

earshot_capture_platform_interface, meta

More

Packages that depend on earshot_level