/noise-pollution-analysis:isolate-nuisancefrom noise-pollution-analysis
Isolate a noise nuisance from room background - subtract a background take with sox, extract a band, make before/after spectrograms.
Ships in noise-pollution-analysis. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Produces a version of the recording with the room's steady background removed, and
optionally a band-limited version that keeps only the nuisance's frequencies. These are
used to listen to the nuisance on its own, to confirm what the analysis found, and as
cleaner input for spectral-analysis.
background_file
in sample.md). Without one, use a span of the nuisance take where the nuisance is
off (e.g. between compressor cycles): ask the user, or find it from level_time.png.
If there is no quiet span at all, skip subtraction and offer band extraction only.sox is available; if not, run install-analysis-tools.sox "<background>" -n remix - noiseprof "<sample>/isolation/bg.prof"
# or from a quiet span of the same take:
sox "<recording>" -n remix - trim <start> <duration> noiseprof "<sample>/isolation/bg.prof"
sox "<recording>" "<sample>/isolation/isolated.wav" remix - noisered "<sample>/isolation/bg.prof" 0.3
Start at 0.3. Use 0.2 if the result sounds watery or the nuisance itself loses level,
and up to 0.4 if background remains.sox "<sample>/isolation/isolated.wav" "<sample>/isolation/band_<lo>_<hi>.wav" sinc <lo>-<hi>
rate from the band of interest: rate 2k → 0-1 kHz, rate 500 → 0-250 Hz,
omit it for full range.
sox "<recording>" -n remix - rate 2k spectrogram -x 1200 -y 513 -z 80 -t before -o "<sample>/isolation/before.png"
sox "<sample>/isolation/isolated.wav" -n rate 2k spectrogram -x 1200 -y 513 -z 80 -t after -o "<sample>/isolation/after.png"
uv run "${CLAUDE_PLUGIN_ROOT}/scripts/analyse_noise.py" "<sample>/isolation/isolated.wav" --out "<sample>/isolation/analysis"
and compare the bands with the original's analysis.json. The nuisance bands should
be within ~1 dB of the original, and the background bands should drop. If a nuisance
band dropped by more than 3 dB, the background take contained the nuisance too; say
so and lower the reduction amount or pick a cleaner quiet span.sample.md what was done (profile source, amount, band) and tell the user
which file to listen to.Writes into <sample>/isolation/ only. Original audio is not modified.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
10 skills in this plugin
/compare-conditionsCompare two or more noise recordings (window open vs closed, source A vs B, before vs after) - delta table against a baseline, per-band deltas and explicit caveats about gain, mic position and the time gap./detect-beatDetect tempo (BPM), beat times and beat strength in a recording of nuisance music or a thumping bass heard through a wall - aubio, librosa and madmom plus an autocorrelation reference, run on Modal./install-analysis-toolsCheck and install the CLI toolchain for noise analysis - ffmpeg, sox, aubio, uv - on Linux, macOS or Windows; verify each works.noise-pollution-analysis@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin noise-pollution-analysis