Full-Wave Rectifier (ABS) — User Guide

Absolute value transformation: converts all negative amplitude values to positive (full-wave rectification), creating harmonic distortion and frequency doubling effect. Excellent for drums and percussion.

Author: Shai Cohen Affiliation: Department of Music, Bar-Ilan University, Israel

What this does

This script applies full-wave rectification (absolute value function) to audio: output = |input|. All negative samples become positive, effectively "flipping" the bottom half of the waveform upward. Result: Doubled frequency content (octave up), added harmonics, increased brightness, and distortion. Particularly effective on drums and percussion for adding punch and harmonics.

Original waveform: /\ /\ / \ / \ / \ / \ / \/ \ After rectification (ABS): /\ /\ / \ / \ / \ / \ / /\ \ ↑ Flipped up (positive)

Quick start

  1. Select one Sound object in Praat.
  2. Run script… → Load Full-Wave Rectifier script.
  3. Choose Preset: Default (0.99, play) / Soft Normalize / Hard Normalize / Custom.
  4. If Custom: Set scale_peak and play_after_processing.
  5. Click OK — processing instant, result appears as "originalname_rectified".
Quick tip: Excellent for drums! Rectification adds punch, brightness, and harmonic content to percussive sounds. Try on kick drums, snares, and tom hits. Less effective on melodic material (creates harsh distortion).

How It Works

Absolute Value Function

Mathematical operation:

Example values:

Spectral Effects

Frequency doubling:

Harmonic generation:

Why good for drums? Percussion benefits from added harmonics and brightness. Rectification emphasizes transients, adds punch, and creates "harder" attack. Kick drums gain presence, snares become crisper. Works because drums are non-pitched (distortion less problematic).

Presets

PresetScale PeakAuto-PlayUse Case
Default0.99YesGeneral use, safe normalization
Soft Normalize0.8YesGentler level, more headroom
Hard Normalize1.0NoMaximum level, no auto-play

🥁 Default (0.99, play)

Scale peak: 0.99 (-0.09 dB)

Auto-play: Enabled

Effect: Safe normalization with slight headroom, immediate audition

Best for: General drum processing, percussion enhancement

Parameters

ParameterTypeDefaultDescription
PresetchoiceDefaultPreset configuration
scale_peakpositive0.99Peak normalization level (0.8-1.0)
play_after_processingbooleanyesAuto-play result

Applications

Drum processing (PRIMARY USE):

Sound design:

Electronic music:

Best source material: Drums, percussion, short transient sounds, bass hits. Less suitable: Melodic instruments (creates harsh distortion), vocals (unnatural), sustained tones (heavy distortion).

Usage Examples

Example 1: Punchy kick drum

Example 2: Crisp snare

Example 3: Aggressive percussion loop

Comparison: Original vs Rectified

Frequency content:

Waveform shape:

Perceived loudness:

Timbre:

Output

New Sound object: "originalname_rectified"

Processing: Instant execution regardless of duration. Works on mono or stereo (applies to all channels). No parameters to tune during processing — simple, deterministic transformation.

Pro Tips

Blending technique:

Frequency-selective rectification:

Serial processing:

Limitations & Warnings

  • Harsh distortion: Not suitable for most melodic material
  • DC offset: Rectification can introduce DC offset (constant positive bias)
  • Phase issues: Unipolar signal can cause mixing problems
  • No undo: Creates new object, but original preserved
  • Simple transformation: No parameters to adjust character
  • Not dynamic: Same processing across entire file (no envelope following)

When NOT to use: Vocals, melodic instruments (piano, guitar chords, strings), sustained harmonic content, classical music, broadcast/mastering (DC offset issues).