konradre/video-production-skills / skills/mastering-audio
mastering-audio
VerifiedMaster audio files (especially Suno/Udio AI music) for streaming release with LUFS normalization, true peak limiting, and optional enhancements. Triggers — "master this", "master the track", "LUFS normalize", "optimize for streaming". Not for a spot's or film's delivery loudness — use video-finish-qc.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.4 KB |
| lib/dsp/constants.js | script | 1.8 KB |
| lib/dsp/dc-offset.js | script | 4.2 KB |
| lib/dsp/dynamic-leveler.js | script | 10.6 KB |
| lib/dsp/dynamic-processor.js | script | 16.8 KB |
| lib/dsp/exciter.js | script | 7.9 KB |
| lib/dsp/fft.js | script | 6.5 KB |
| lib/dsp/final-filters.js | script | 3.2 KB |
| lib/dsp/index.js | script | 3.2 KB |
| lib/dsp/limiter.js | script | 12.2 KB |
| lib/dsp/lufs.js | script | 5.7 KB |
| lib/dsp/multiband-saturation.js | script | 13.3 KB |
| lib/dsp/multiband-transient.js | script | 8.1 KB |
| lib/dsp/multiband.js | script | 8.2 KB |
| lib/dsp/normalizer.js | script | 4.5 KB |
| lib/dsp/saturation.js | script | 9.3 KB |
| lib/dsp/soft-clipper.js | script | 9.1 KB |
| lib/dsp/stereo.js | script | 8.8 KB |
| lib/dsp/transient.js | script | 7.9 KB |
| lib/dsp/true-peak.js | script | 2.6 KB |
| lib/dsp/utils.js | script | 4.4 KB |
| lib/src/audio-buffer-shim.js | script | 3.6 KB |
| lib/src/wav-encoder.js | script | 5.1 KB |
| package-lock.json | manifest | 611 B |
| package.json | manifest | 187 B |
| scripts/master.mjs | script | 15.2 KB |
lib/dsp/constants.js
View on GitHub/**
* DSP Constants
* ITU-R BS.1770-4 compliant constants for audio processing
*/
// ITU-R BS.1770-4 K-weighting filter specifications
export const K_WEIGHTING = {
HIGH_SHELF_FREQ: 1681.97, // Hz - Head-related transfer function correction
HIGH_SHELF_GAIN: 4.0, // dB
HIGH_SHELF_Q: 0.71, // Q factor (approximately 1/sqrt(2))
HIGH_PASS_FREQ: 38.14, // Hz - DC blocking / rumble filter
HIGH_PASS_Q: 0.5 // Q factor
};
// LUFS gating thresholds (ITU-R BS.1770-4)
export const LUFS_CONSTANTS = {
BLOCK_SIZE_SEC: 0.4, // 400ms measurement blocks
BLOCK_OVERLAP: 0.75, // 75% overlap (100ms hop)
ABSOLUTE_GATE_LUFS: -70, // Absolute threshold in LUFS
ABSOLUTE_GATE_LINEAR: 1e-7, // Math.pow(10, -70/10) = 1e-7
RELATIVE_GATE_OFFSET: 0.1, // -10 dB below ungated mean (10^(-10/10) = 0.1)
LOUDNESS_OFFSET: -0.691 // Reference offset for LUFS calculation
};
// Default limiter settings
export const LIMITER_DEFAULTS = {
CEILING_DB: -1, // Default ceiling in dB
CEILING_LINEAR: 0.891, // Math.pow(10, -1/20)
LOOKAHEAD_MS: 3, // Lookahead time in ms
RELEASE_MS: 100, // Release time in ms
KNEE_DB: 3, // Soft knee width in dB
PRESERVE_TRANSIENTS: true // Enable transient preservation
};
// Exciter defaults
export const EXCITER_DEFAULTS = {
hpfFreq: 6000, // Higher cutoff (was 3500) to avoid exciting harsh mid-range artifacts
hpfSlope: 12, // dB/oct
drive: 0.5, // Saturation amount
bias: 0.2, // Distort bias
mix: 0.15 // Parallel mix amount (was 18% in comment, but usually 0-1 range or 0-100)
};
// Audio processing defaults
export const AUDIO_DEFAULTS = {
SAMPLE_RATE: 48000,
BIT_DEPTH: 24,
TARGET_LUFS: -14
};
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |