FX Basics STOMPBOX DESIGN WORKSHOP Esteban Maestre CCRMA Stanford University July 2
Dynamics effects were the earliest effects to be introduced by guitarists. The simple idea behind dynamics effects is to amplify or attenuate the amplitude of the electrical signal coming out from the pickup or microphone. They first appeared in the 94s as simple on/off switch boards, evolving to volume pedals in the 95s. Ex: volume pedal, boost, tremolo, noise gate, dynamic range compressor
Gain control Achieved by means of a simple multiplication. Gain Input signal X Output signal amplitud de.5 -.5 Gain > amplitud de.5 -.5 - -.5.55.6.65.5.55.6.65
Volume Boost Generally used for boosting volume during solos and/or preventing signal loss in long effect chains. Ex: when switching from rhythm guitar to lead guitar, a guitarist may use a clean boost to increase the volume of his or her solo. Gi Gain ON/OFF Input signal X Output signal
Volume Boost (ii).5.5 gain.5 OFF/ON.5 -.5.68.69.7.7.72.73.74 -.5.68.69.7.7.72.73.74 amplitude.5 -.5-68.68 7.7 72.72 74.74 X amplitude 5.5 -.5-68.68 7.7 72.72 74.74 _stomp_dynamics_.pd
Tremolo Produces a slight, rapid oscillation ofthe signal amplitude; not to be confused with tremolo bar (pitch oscillation). Based on the use of a 6 Low Frequency Oscillator (LFO): FREQUENCY (f ) AMPLITUDE y LFO frequency 5.5 5 4.5 4.2.4.6.8.2.4.6.8 2 2 ~ Oscillator LFO X Output signal LFO amplitude LFO output signal amplitude.5.2.4.6.8.2.4.6.8 2 /f 2 - /f -2.2.4.6.8.2.4.6.8 2
Tremolo (ii) Typically, twocontrols areoffered: RATE: Sets the frequency of the volume oscillation DEPTH: Sets the amplitude of the volume oscillation RATE DEPTH ON/OFF Frequency Amplitude LFO + Input signal X Output signal
Tremolo (iii) Input signal input.5 -.5 -.62.625.63.635.64.645.65.655 RATE DEPTH ON/OFF Frequency Amplitude LFO + Output signal X input LFO amplitude LFO frequency.5 -.5-5.5 8 5.5 2 7 6 5 4.5.5.5 2.4.3.2..5.5 2.5 _stomp_dynamics_2.pd output -.5 5 -.5.5 2
Noise gate Attenuates signal whenits level falls below a given threshold. Both the attenuation and threshold are usually available as user controls (resp. RANGE and LEVEL). Ex: avoid unwanted noise floorwhenthere is nosignal coming from the instrument RANGE LEVEL Input Signal Level Detector X <? Output Signal
Noise gate (ii) LEVEL DETECTOR (Envelope Follower): Often implemented as Root Mean Square (RMS) meter. RMS amplitude provides a measure of effective (short time averaged) signal intensity. Averaging time sets the responsiveness of the meter. Input Signal AVG. TIME ^2 AVG SQRT RMS ENVELOPE FOLLOWER Output Signal
TIME AVERAGE Acts as a smoothing function: x x[n] Input Signal Smoothing Function y[n] Output Signal y n Average of current and previous input samples n n n Current sample Current sample
TIME AVERAGE: y [n] = ( /M ) ( x[n] + x[n ] + + x[n M+] + x[n M] ) Obtain M from averaging time : M = avgtime f s SMOOTHING WITH RECURSIVE EQUATION: Find coefficients a and b so that equation y[n] = b x[n] + b x[n ] + + b N x[n N] a y[n ] [ a N y[n N] [ results into a smoothing function. digital implementation of a Low Pass (LP) filter. current and previous input samples previous output samples
.5 -.5 RMS Envelope With TIME AVERAGE: Averaging using 44 and 882 previous samples respectively (M=44; M=882).3.35.4.45.5 With Smoothing Low Pass Filter (RECURSIVE):.5 Both fl filters only using previous sample (N=)!! -.5 -.3.35.4.45.5.55
/2 /5 TIME DOMAIN litude ampl.5 -.5 Fourier Transform -.564.566.568.57.572.574.576.578.58.8 FREQUENCY DOMAIN de magnitu 6.6.4 f s /2 (Nyquist).2 5.5 5.5 2 25 2.5 frequency (Hz) x 4 5 2
x(t) =. sin(2 π 5 t) +.4 sin(2 π 5 t).5 amplitude -.5 -.366.367.368.369.37.37.372.373.374.375.5 magnitude.5 5 5.5.5 2 2.5 frequency (Hz) x 4
Magnitude Slower Components Quicker Components f s /2 (Nyquist) Low Frequencies High Frequencies f
Gain One can design a Low Pass filter so that components above a certain characteristic frequency (f c ) get attenuated LP Low Frequencies High Frequencies f
y[n] =.344 x[n] 344 x[n] +.344 x[n ] 344 x[n ] +.932 y[n ] amplitude.5 -.5 -.382.383.384.385.386.387.388.389.39.39 How to design the coefficients? (e.g. how many coefficients? which values?) magnitude 8.8.6.4.2 5 5 Basics of DIGITAL FILTERS (to come ).5.5 2 2.5 frequency (Hz) x 4
Noise gate (iii) RMS Envelope Follower.8.7.6 Rapid oscillation (quicker components).5 have been attenuated.4.3 2.2. -..3.3.32.33.34.35 x[n] ^2 LP filter SQRT y[n] RMS ENVELOPE FOLLOWER
Noise gate (iv) Example of basic operation Input TH Gain RANGE ON ON ON Output Chattering TH Abrupt ON OFF / OFF ON transitions
Noise gate (v) Noise gates often include HYSTERESIS and ATTACK/RELEASE times Input Avoids chattering TH ON OFF TH OFF ON Gain RANGE Output Attack Release Smoother transitions 2_stomp_dynamics_3.pd pd
Dynamic Range Compressor Attenuates the signal when its level its higher than a certain threshold. Both the amount of attenuation and the threshold are the most typical user controls (resp. COMPRESSION/RATIO and LEVEL). Ex: reduce intensity differences, soften the amplitude of very loud attacks Bypass Level Detector COMPRESSION X LEVEL >? Output Level COMPRESSION Hard Limiter LEVEL Input Level
Dynamic Range Compressor (ii) COMPRESSION LEVEL FEED FORWARD basic structure Level Detector Gain Computer X COMPRESSION LEVEL FEED BACK basic structure Gain Computer Level Detector X
Dynamic Range Compressor (iii) Input Example of basic operation Output Level ON: Gain < : 2: 4: Gain Gain = Gain < OFF ON OFF ON OFF Inf: Output LEVEL OFF: Gain = Input Level
Dynamic Range Compressor (iv) Further available controls, depending on application: ATTACK / RELEASE TIMES HARD vs SOFT KNEE MAKE UP GAIN Input Output Level HARD KNEE Gain Make up Gain Reduced Gain OFF ON OFF ON OFF MAKE UP GAIN SOFT KNEE Output LEVEL 3_stomp_dynamics_4.pd Input Level