dsp-audio-filter-effects

dsp-audio-filter-effects is a skill for Claude Code, Codex from hamzabellouch/agent-skills. It costs 68 tokens per session (1,209 once invoked), scanned A, original, MIT.

A guide to digital signal processing, the mathematical treatment of audio and other sampled signals. It covers software filters, frequency analysis, compression, and modulation effects in Python and C++.

In plain words
What is it for?
Use it to build equalizers and other filters, inspect frequencies with fast Fourier transforms, compress dynamic range, and create sound effects.
Why use it?
It helps developers implement predictable audio processing instead of assembling effects without understanding how they change a signal.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build equalizers and other filters, inspect frequencies with fast Fourier transforms, compress dynamic range, and create sound effects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamzabellouch/agent-skills/dsp-audio-filter-effects
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hamzabellouch/agent-skills --skill dsp-audio-filter-effects
Clone the repo
git clone --depth 1 https://github.com/hamzabellouch/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dsp-audio-filter-effects

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/dsp-audio-filter-effects/github.svg)](https://agentmods.dev/skills/hamzabellouch/agent-skills/dsp-audio-filter-effects)
Your own site
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/dsp-audio-filter-effects"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/dsp-audio-filter-effects/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dsp-audio-filter-effects

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/dsp-audio-filter-effects"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/dsp-audio-filter-effects.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,209 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.01209
Opus 5.5 $0.00027 $0.00484
Sonnet 5.5 $0.00014 $0.00242
Haiku 4.5 $0.00007 $0.00121

Measured 18d ago against content hash f42feef2b2cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dsp-audio-filter-effects scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Art/Audio_Engineering_and_Sound_Design/dsp-audio-filter-effects/SKILL.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Digital Signal Processing (DSP) Audio Filter & Effects Skill Guide

This skill covers the design, mathematical formulation, and software implementation of digital audio filters, dynamic range compressors, and spectral transforms.


1. Filter Classifications: IIR vs FIR

+-----------------------------------+-----------------------------------+
| Infinite Impulse Response (IIR)   | Finite Impulse Response (FIR)     |
+-----------------------------------+-----------------------------------+
| - Feedback (Recursive)            | - Feedforward only (Non-recursive)|
| - Low computational cost (CPU)    | - Linear phase response available |
| - Examples: Butterworth, Biquad   | - Inherently stable               |
| - Ideal for real-time live audio  | - Ideal for mastering & phase-    |
|   filters & equalizers            |   critical crossover filters      |
+-----------------------------------+-----------------------------------+

2. Production Code Implementations

A. Butterworth Bandpass & Highpass Filters (Python / SciPy)

import numpy as np
from scipy import signal


class AudioFilterEngine:
    def __init__(self, sample_rate: int = 44100):
        self.sample_rate = sample_rate

    def butter_bandpass(self, lowcut: float, highcut: float, order: int = 4):
        nyquist = 0.5 * self.sample_rate
        low = lowcut / nyquist
        high = highcut / nyquist
        # Return second-order sections (SOS) for numerical stability
        sos = signal.butter(order, [low, high], btype="bandpass", output="sos")
        return sos

    def apply_filter(self, data: np.ndarray, sos: np.ndarray) -> np.ndarray:
        # Applies filter forward and backward (zero-phase) or single-pass.
        return signal.sosfilt(sos, data)


def compute_spectral_centroid(audio_data: np.ndarray, sample_rate: int) -> float:
    # Calculates the spectral centroid (brightness) of an audio frame.
    spectrum = np.abs(np.fft.rfft(audio_data))
    frequencies = np.fft.rfftfreq(len(audio_data), d=1.0 / sample_rate)

    magnitude_sum = np.sum(spectrum)
    if magnitude_sum == 0:
        return 0.0
    return float(np.sum(frequencies * spectrum) / magnitude_sum)

Read the full file on GitHub · 126 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago First seen · 126 lines · 68 tokens per session scan A f42feef2b2cb

Subscribe to this mod's changes

dsp-audio-filter-effects is a skill published in the GitHub repository hamzabellouch/agent-skills (8 stars, last pushed today), licensed MIT. It adds 68 tokens to every session and 1,209 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-29.

Related

Other skills, from other repositories