How Envelope Followers Generate MIDI CC from Guitar
An envelope follower tracks the continuous amplitude dynamics of an incoming acoustic guitar signal and translates those physical volume fluctuations into digital MIDI Continuous Controller (CC) messages. By continuously analyzing the loudness of notes and strums, the system bridges the acoustic and digital realms, allowing a player's natural picking dynamics to automate synthesizer filters, effects, or virtual instrument parameters in real time.
1. Signal Capture and Conditioning
The process begins with capturing the acoustic guitar via a pickup (piezo, magnetic, or microphone) and feeding the audio into an envelope follower plugin or hardware unit. Before analysis, the incoming alternating current (AC) signal typically passes through a band-pass or high-pass filter. This filtering removes low-end body thumps, handling noise, and unwanted string squeaks that could cause erratic jumps in the envelope tracking.
2. Full-Wave Rectification and Smoothing
Raw audio signals oscillate rapidly between positive and negative voltages. To measure overall volume rather than individual sound wave cycles, the envelope follower first rectifies the audio, flipping the negative half of the waveform to positive values.
Next, the detector applies a low-pass filter governed by adjustable Attack and Release times:
- Attack: Determines how fast the follower responds to the sudden transient of a plucked string. A fast attack captures sharp accents immediately, while a slower attack prevents unwanted spikes.
- Release: Dictates how smoothly the tracking decays as the guitar note rings out. A properly calibrated release ensures smooth automation curves rather than jittery drops between note vibrations.
The result is a smooth, continuous direct current (DC) voltage or software control curve representing the guitar's dynamic contour.
3. Calibration, Thresholds, and Scaling
A raw envelope curve does not automatically match the dynamics of musical performance. The envelope follower employs calibration controls to map the acoustic range to the standard MIDI data resolution:
- Threshold / Noise Gate: Ignores ambient noise, fret buzz, or low-level room sound so MIDI CC messages are only triggered by intentional playing.
- Gain and Sensitivity: Normalizes the input so soft fingerpicking and hard flatpicking span the intended dynamic range.
- Range Mapping: Maps the analog loudness curve to the 7-bit MIDI CC scale, which spans from 0 (minimum) to 127 (maximum). Advanced followers also allow inverted scaling (e.g., loud hits output 0, silence outputs 127) or non-linear logarithmic curves to better match human hearing.
4. MIDI CC Generation and Transmission
Once scaled to the 0–127 integer format, the values are assigned to a designated MIDI CC channel and number (such as CC 1 for Modulation, CC 11 for Expression, or CC 74 for Filter Cutoff). The follower transmits these messages at a defined sample rate—typically between 50 Hz and 500 Hz. This output frequency ensures the target software or hardware responds fluidly without overwhelming the MIDI bandwidth with data stream bottlenecks.
Through this pipeline, every accent, swell, and decay played on the acoustic guitar translates directly into expressive, synchronized automation for modern production workflows.