Harmonic Resonance Boost — User Guide

A phase-preserving harmonic magnitude comb that emphasizes frequency bands around integer multiples of a chosen fundamental while attenuating the spectrum between them.

Author: Shai Cohen Affiliation: Department of Music, Bar-Ilan University, Israel Version: 0.6.2 (2026) License: MIT License Repo: https://github.com/ShaiCohen-ops/Praat-plugin_AudioTools
Contents:

What this does

Harmonic Resonance Boost applies a hard-edged frequency-domain gain comb. Frequencies close to integer multiples of a user-defined fundamental f0 are multiplied by Harmonic boost; frequencies outside those bands are attenuated by one of two gains, separated by Mid freq cutoff. The filter multiplies both real and imaginary FFT components by the same real gain, so it changes magnitude while preserving the source phase at every bin.

Important: the script does not detect the source's fundamental. Fundamental frequency defines the harmonic grid you want to impose. A 200 Hz setting therefore boosts neighborhoods around 200, 400, 600, 800 Hz, and so on, whether or not the input is pitched at 200 Hz.

What are harmonics and harmonic resonance?

A harmonic series is a set of frequencies at integer multiples of a fundamental frequency: f0, 2f0, 3f0… . Many periodic musical tones contain energy near such multiples. This processor uses that arithmetic relationship as a spectral selection grid: energy near the grid is emphasized relative to energy between the harmonics.

This is best understood as a magnitude comb filter, not as physical resonance modelling. No resonating body, decay time, or feedback loop is simulated. The word “resonance” describes the resulting emphasis of a chosen harmonic family.

nearest harmonic n = round(f / f0) if n ≥ 1 and |f − n·f0| < half_width: gain = harmonic_boost else if f < mid_freq_cutoff: gain = low_mid_attenuation else: gain = high_freq_attenuation

If the half-width reaches roughly half the fundamental spacing, adjacent boosted cells meet or overlap. The upper spectrum then becomes continuously boosted rather than alternating between boosted and attenuated bands.

Quick start

  1. Select exactly one Sound.
  2. Run Harmonic_Resonance_Boost.praat.
  3. Choose a preset, or use Custom.
  4. Set the harmonic fundamental and half-width. Wider bands retain more of the original spectrum around each harmonic.
  5. Choose mono or stereo output and click OK.

Presets

Presetf0Half-widthBoostLow/MidHighR widening
Sub Drone50 Hz20 Hz4.0×0.150.058 Hz
Industrial Hum60 Hz15 Hz5.0×0.100.025 Hz
Laser Comb200 Hz8 Hz6.0×0.050.023 Hz
Alien Voice333 Hz40 Hz3.5×0.080.0320 Hz
Metallic Ring666 Hz25 Hz5.5×0.060.0412 Hz
Glass Bells1200 Hz35 Hz3.0×0.200.1525 Hz
Celestial Pad528 Hz80 Hz2.0×0.250.1540 Hz
Swarm77 Hz12 Hz4.5×0.120.066 Hz

Presets replace the listed spectral values but leave the output switches, including Create stereo, Scale peak, visualization, and playback, under user control.

Controls

ControlMeaning
Fundamental frequencySpacing of the harmonic grid. Must be below Nyquist.
Harmonic half-widthBoosted region on each side of every harmonic. This is a half-width: a 20 Hz value means approximately ±20 Hz.
Harmonic boostLinear gain applied inside harmonic cells. 1 = unity; values above 1 boost; 0 suppresses the harmonic cells.
Mid freq cutoffBoundary between the two non-harmonic attenuation gains.
Low/mid attenuationGain for non-harmonic bins below the cutoff; range 0…1.
High freq attenuationGain for non-harmonic bins at or above the cutoff; range 0…1.
Create stereoBuilds a two-channel result with different harmonic band widths.
Right-band wideningAdded only to the right-channel half-width. It does not shift the harmonic centres.
Scale peakFinal target peak for every non-silent result.

Processing pipeline

  1. Choose the source channel topology.
  2. Transform the source to a Spectrum.
  3. Apply the exact harmonic gain law directly to the complex Spectrum.
  4. Convert back to Sound and trim FFT padding to the original duration.
  5. For stereo, combine the independently filtered L/R results.
  6. Target-normalize the final non-silent Sound to Scale peak.

Channels, duration and level

Visualization

The Picture window shows original and filtered waveforms, the original and pre-output-scaling spectra, the exact left/right harmonic gain laws, and a summary of f0, band widths, boost/attenuation and comb coverage. The filter-response plot uses the same nearest-harmonic rule as the audio processing.