Presentation is loading. Please wait.

Presentation is loading. Please wait.

EE599-020 Audio Signals and Systems Effects Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.

Similar presentations


Presentation on theme: "EE599-020 Audio Signals and Systems Effects Kevin D. Donohue Electrical and Computer Engineering University of Kentucky."— Presentation transcript:

1

2 EE599-020 Audio Signals and Systems Effects Kevin D. Donohue Electrical and Computer Engineering University of Kentucky

3 Related Web Sites Audio effects are popular among musicians and recording engineers. They typically involve linear and non-linear distortions to produce an artistic or aural impression. Related website are: http://users.iafrica.com/k/ku/kurient/dsp/effects.html http://www.dsv.su.se/~fk/DSP/dsp.html http://www.harmony-central.com/Effects/

4 Expanders and Compressors process the amplitude of the signal in a nonlinear (usually logarithmic) manner to modify dynamic ranges, suppress low-level noise, compand, and create effects. Amplitude/Envelope Effects

5 Expanders/Noise Gates The input/output relationship of a zero-memory expander can be expressed with the following equation: where x(n) is the input, y(n) is the expanded output, x e is the threshold below which logarithmic scaling is applied, and  is rate of attenuation (log slope) of the values below the expander threshold. The rate  should range from 1 to infinity (10 is close enough).

6 Consider an speech file corrupted with low-level hiss (white noise). If the expander gate is set logarithmically to attenuate the signal by some factor (3:1) for all signal under a value that is mostly greater than the noise amplitudes, then the hiss (especially in the areas of silenced will be suppressed). Example

7 For the zero-memory expander the threshold is fixed, independent of signal amplitude. In most applications the attack and decay time of the threshold can set so the attenuation effectively delays its application when the signal falls below the threshold and its release when the signal goes above the threshold. Dynamic Expanders x(t) Level/Envelop Detector Memory/Filter Attack/Decay Response Gainy(t)

8 Example Consider an single tone whose amplitude jumps abruptly (below and above the expansion threshold. Apply LPF to the envelope used in threshold determination and describe effects on the output to various levels of LPF on the envelope. (threshold =.2, ratio 10:1, real pole on 1 st order LPF = 0 and.995

9 Compressor/Limiting The input/output relationship of a zero-memory compressor can be expressed with the following equation: where x(n) is the input, y(n) is the expanded output, x e is the threshold below which logarithmic scaling is applied, and  is rate of attenuation (log slope) of the values below the expander threshold. The rate  should range from 1 to 0 (.1 is close enough).

10 Consider an very loud and very soft sound being played simultaneously. Apply zero memory compression to reduce the dynamic range of the signal so both sounds can be hear more distinctly. Example

11 For the zero-memory compressor the threshold is fixed, independent of signal amplitude. In most applications the attack and decay time of the threshold can set so the attenuation effectively delays its application when the signal falls below the threshold and its release when the signal goes above the threshold. Dynamic Compressors x(t) Level/Envelop Detector Memory/Filter Attack/Decay Response Gainy(t)

12 Noise Reduction The nonlinear processing presented in compression and expansion has been adapted for specialized noise reduction techniques. Especially if noise is due to quantization or dynamic range limitations of the recording/transmission media. See … http://hyperphysics.phy-astr.gsu.edu/hbase/audio/tape4.html http://www.dolby.com/cassette/bcsnr/common.html http://www.epanorama.net/documents/telecom/ulaw_alaw.html

13 Quantization Error and Noise  Quantization has the same effects as adding noise to the signal: 11 10 01 00 AnalogDiscreteDigital  Intervals between quantization levels are proportional to the resulting quantization noise.  For uniform quantization, the interval between signal levels is the maximum signal amplitude value divided by the number of quantization intervals.

14 Quantization Levels and Dynamic Range  An N bit word can represent 2 N levels  For audio signal an N bit word corresponds to: Nx20xLog 10 (2) dB dynamic range  16 bits achieve a dynamic range of about 96 dB. For every bit added, about 6 db is added to the dynamic range.  The human ear can detect sounds from 1x10 -12 to 10 watts / meter 2 (130 dB dynamic range)

15 Noise Reduction  If signals need to be recorded or transmitted on media that reduce dynamic range or adds noise, compression and expansion before storage and after playback can be use to enhance signal-to-noise and dynamic range.  Dolby TM, dbx TM, and mu-law companding noise reduction systems are examples of amplitude only encoders.  Signals can be compressed to fit the dynamic range of the media and expanded on playback.  If noise is added to the signal in a compressed state, expansion on playback will suppress the noise while restoring the signal.  If a compressed signal is quantized, the lower level amplitudes will effectively be quantized with a smaller interval than the larger amplitudes, thereby redistributing the quantization noise to louder signal amplitudes where it is less likely to be perceived.

16 Quantization Noise  Original CD clip quantized with 6 bits at original sampling frequency

17 Phase/Frequency Effects Several effects modify the signal phases to produce simulated reverb, delay, flanging, chorusing, and phasing.

18 Delay/Echo A simple FIR filter can be used to implement a single echo effect. x(n) Z -M b y(n) +

19 Delay/Echo with Regeneration An IIR filter can be used to implement regeneration with an echo effect. x(n) Z -M b y(n) + a +

20 Examples Determine the frequency response for the delay with and without regeneration. Describe how the delay effect will sound with and without regeneration. Describe how you could characterize a delay system? What test signals would be useful, what analysis would be used, what parameters could you determine?

21 Reverb A more complex series of regenerated echoes can be use to model a reverb effect Early reflections (Specular) FIR comb filters Late Reflections (diffuse) IIR all-pass filters

22 Flanging Combining a signal with a dynamic delay of itself creates a “whooshing” effects referred to as flanging. x(n) Z -M(n) b y(n) + a +

23 Time-varying system For M(n) following a sinusoidal pattern, flanging with no feedback can be expressed as: where M is the mean delay, d is the dynamic delay (sweep depth) expressed in samples, and f m is the modulation frequency of the dynamic delay. Typical flanging parameters for f m range from.2 to 2 Hz and delays ranges from.5 to 10 ms.

24 Examples Determine the frequency response for the flanger for fixed delay with and without feedback. Discuss what happens to the response when the delay varies. Describe how you could characterize a flanging system? What test signals would be useful, what analysis would be used, what parameters could you determine?

25 Chorusing Chorusing creates the effect of multiple voices through multiple dynamic frequency shifts and time delays. This can be implemented with multiple flanging paths where b i is the scaling on each choruser M i +d i is the maximum delay expressed in samples, and f i is the modulation frequency of the sweep depth. Typical delay times for this effect are from 20 to 30 ms with dynamic delays on the order of 1 to 10ms.

26 Frequency Response Modification  Most filtering effects give empahsis/deemphasis to a particular frequency region (equalization, shelving, parametric filtering, band-pass, stop- band, high-pass, low-pass..)  Dynamic filters can also be used to create effects based on how the filter is varied while the sound is being played. This includes effects such as Wah- Wah and Vocoding.

27 Wah-Wah  The Wah-Wah effect is created by dynamic shifting the center frequency of a bandpass filter processing the audio signal. The user typically controls this with a pedal or sets the tempo for automatic variations. More complex features include different shaped filter, such as those based on the voice spectrum (sometime referred to as vocoding)

28 Charcterizing Wah-Wah Describe how to determine the parameters of a Wah-Wah processor (test signals, processor settings, analyses …).


Download ppt "EE599-020 Audio Signals and Systems Effects Kevin D. Donohue Electrical and Computer Engineering University of Kentucky."

Similar presentations


Ads by Google