Skip to Content
DAFX: Digital Audio Effects, Second Edition
book

DAFX: Digital Audio Effects, Second Edition

by Udo Zölzer
May 2011
Intermediate to advanced
624 pages
21h 19m
English
Wiley
Content preview from DAFX: Digital Audio Effects, Second Edition

2.6 Delay-based Audio Effects

2.6.1 Vibrato

When a car is passing by, we hear a pitch deviation due to the Doppler effect [Dut91]. This effect will be explained in another chapter, but we can keep in mind that the pitch variation is due to the fact that the distance between the source and our ears is being varied. Varying the distance is, for our application, equivalent to varying the time delay. If we keep on varying periodically the time delay we will produce a periodical pitch variation. This is precisely a vibrato effect. For that purpose we need a delay line and a low-frequency oscillator to drive the delay time parameter. We should only listen to the delayed signal. Typical values of the parameters are 5 to 10 ms as the average delaytime and 5 to 14 Hz rate for the low-frequency oscillator (see Figure 2.32) [And95, Whi93]. M-file 2.8 shows the implementation for vibrato [Dis99].

M-file 2.8 (vibrato.m)

function y=vibrato(y,SAMPLERATE,Modfreq,Width)

% Author: S. Disch

ya_alt=0;

Delay=Width; % basic delay of input sample in sec

DELAY=round(Delay*SAMPLERATE); % basic delay in # samples

WIDTH=round(Width*SAMPLERATE); % modulation width in # samples

if WIDTH>DELAY

  error(’delay greater than basic delay !!!’);

  return;

end

MODFREQ=Modfreq/SAMPLERATE; % modulation frequency in # samples

LEN=length(x);        % # of samples in WAV-file

L=2+DELAY+WIDTH*2;    % length of the entire delay

Delayline=zeros(L,1); % memory allocation for delay

y=zeros(size(x));     % memory allocation for output vector ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Digital Audio Signal Processing, 3rd Edition

Digital Audio Signal Processing, 3rd Edition

Udo Zölzer

Publisher Resources

ISBN: 9780470665992Purchase book