Skip to content

v0.0.1

Choose a tag to compare

@bovinemagnet bovinemagnet released this 12 Apr 10:11
· 67 commits to main since this release

Initial Release

Pure Dart library to detect pops and clicks in WAV audio files using adaptive threshold analysis.

Features

  • Detect clicks (1–10 samples) and pops (10–150 samples) in WAV audio
  • Adaptive MAD-based threshold with configurable sensitivity (low/medium/high)
  • Support for PCM 8/16/24/32-bit and IEEE Float 32-bit WAV files
  • Raw PCM byte analysis via analysePcm() with PcmFormat descriptor
  • Pre-normalised sample analysis via analyseSamples() for integration with other decoders
  • Per-channel or mono-summed analysis
  • Confidence scoring with logistic function
  • Public median() and mad() statistical utilities
  • CLI tool with text and JSON output, glob support, batch processing, and raw PCM mode
  • Pure Dart — no native dependencies, works on all platforms

CLI Usage

dart pub global activate audio_defect_detector
audiodefect analyse recording.wav --sensitivity=high --output=json
audiodefect analyse decoded.raw --raw --sample-rate=44100 --bit-depth=16 --channels=2

Library Usage

import 'package:audio_defect_detector/audio_defect_detector.dart';

final result = await analyseFile('recording.wav');
print('Found ${result.defects.length} defects');