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

6.3 Time Stretching

Introduction

In order to understand the issue of time stretching, let us take the example of a signal whose duration does not fit the time slot that is allocated to its application. Think about a speaker that has already recorded 33 seconds of speech, but whose contribution to a commercial may not be longer than 30 seconds. If he does not want to record his text again, the sound engineer may artificially contract his speech by 10%. With the term “time stretching” we mean the contraction or expansion of the duration of an audio signal. We have studied in 6.2 a method that alters the duration of a sound, the variable speed replay, but it has the drawback of simultaneously transposing the sound. The Harmonizer could be used to transpose the sound in the opposite direction and the combination of both methods leads to a time-stretching algorithm.

The main task of time-stretching algorithms is to shorten or lengthen a sound file of M samples to a new particular length M′ = α · M, where α is the scaling factor. For performing time stretching algorithms the sound file has to be available in a stored form on a storage medium like a sampler, DAT or a hard disc. Time stretching of a sequence of audio samples is demonstrated in Figure 6.4. The original signal is shown in the upper plot. The middle plot shows a sequence which is shortened by a scaling factor α = 0.5 and the lower plot shows stretching by a scaling factor α = 2.

Figure 6.4 Time stretching with scaling factor ...

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