The Naked Scientists
  • Login
  • Register
  • Podcasts
      • The Naked Scientists
      • eLife
      • Naked Genetics
      • Naked Astronomy
      • In short
      • Naked Neuroscience
      • Ask! The Naked Scientists
      • Question of the Week
      • Archive
      • Video
      • SUBSCRIBE to our Podcasts
  • Articles
      • Science News
      • Features
      • Interviews
      • Answers to Science Questions
  • Get Naked
      • Donate
      • Do an Experiment
      • Science Forum
      • Ask a Question
  • About
      • Meet the team
      • Our Sponsors
      • Site Map
      • Contact us

User menu

  • Login
  • Register
  • Home
  • Help
  • Search
  • Tags
  • Recent Topics
  • Login
  • Register
  1. Naked Science Forum
  2. Non Life Sciences
  3. Technology
  4. Why Does Changing The Speed Of Digital Audio Change The Pitch?
« previous next »
  • Print
Pages: [1]   Go Down

Why Does Changing The Speed Of Digital Audio Change The Pitch?

  • 4 Replies
  • 7637 Views
  • 2 Tags

0 Members and 1 Guest are viewing this topic.

Offline JustCool (OP)

  • First timers
  • *
  • 2
  • Activity:
    0%
  • Naked Science Forum Newbie
Why Does Changing The Speed Of Digital Audio Change The Pitch?
« on: 23/02/2018 08:16:46 »
As a music producer and former DJ, I've never been able to wrap my brain around why the pitch control on the first DJ CD players behaved the same way as the pitch control on analog turntables.

That is, DJ turntables like the Technics 1200 included a pitch slider that changed the speed of the platter. Because the grooves in vinyl are direct representations of soundwaves that vibrate the needle, causing the grooves of the record to pass under the needle at a slower rate, say, decreases both the tempo of the music and the pitch because the individual vibrations of the needle happen more slowly, ultimately reproducing a lower frequency soundwave from the speaker.

However the information stored on CDs is digital—it only consists of 1s and 0s. That binary information describes the soundwave of the music at a given moment...44100 times per second in fact. When DJ CD players appeared on the market, I was surprised to find that the sliders affected the pitch of the music—and not just the tempo—because slowing the rotation of a CD should simply cause the 1s and 0s to be read with longer spaces in between. I see how this would slow the tempo, but how could a digital representation of audio change pitch unless the numbers themselves changed?

In time, DJ CD players (and digital audio workstations) have implemented time stretching capabilities that allow the user to make the pitch remain constant while the audio is slowed or sped up. This is achieved by repeating or deleting tiny snippets of sound. I understand why that processing is necessary, but I still can't wrap my brain around the basic fact that slowing the compact disc's read rate would change the pitch of the audio!
Logged
 



Offline Colin2B

  • Global Moderator
  • Naked Science Forum King!
  • ********
  • 6476
  • Activity:
    0%
  • Thanked: 708 times
Re: Why Does Changing The Speed Of Digital Audio Change The Pitch?
« Reply #1 on: 23/02/2018 08:51:51 »
It’s because what is encoded on the disc at any point is the amplitude of the signal, not it’s pitch.
So when you slow down the disc the rate of the amplitude-changes, sent to the D-A converter, is also slowed down, so the pitch is reduced in frequency.
Logged
and the misguided shall lead the gullible,
the feebleminded have inherited the earth.
 

Offline evan_au

  • Global Moderator
  • Naked Science Forum GOD!
  • ********
  • 11035
  • Activity:
    9%
  • Thanked: 1486 times
Re: Why Does Changing The Speed Of Digital Audio Change The Pitch?
« Reply #2 on: 23/02/2018 10:01:23 »
Quote from: JustCool
pitch control on the first DJ CD players behaved the same way as the pitch control on analog turntables.
They both work in very similar ways (if you ignore the analogue vs digital aspect), because the pitch is tied to the physical speed of the disk:
Vinyl records work by transforming sound (=rapid air pressure variation) into left & right wobbles of the needle.
- On playback, the wobbles in the disk groove are translated into rapid air pressure variations, reproducing the sound.
- If you increase (or decrease) the playback speed, the air pressure variations will occur more frequently (or less frequently), increasing (or decreasing) the pitch of the sound and the tempo of the music.
- Vinyl records use constant angular velocity (constant revolutions per minute)

CDs work by measuring the sound (=rapid air pressure variation), transforming that into 16-bit numbers recorded 44,100 times per second, which are then impressed onto a polycarbonate disk with a reflective aluminium layer.
- On playback, the 1s & 0s in the disk are translated into rapid air pressure variations, reproducing the sound.
- If you increase (or decrease) the playback speed, these 16-bit numbers will occur more frequently (or less frequently), be assembled into measures of sound pressure more frequently (or less frequently), increasing (or decreasing) the pitch of the sound and the tempo of the music.
- The pitch is implicitly recorded in the rate that the samples are recorded
- CDs use constant linear velocity (constant samples per second)

Quote
how could a digital representation of audio change pitch unless the numbers themselves changed?
If the numbers changed (eg doubling every number), the pitch would remain the same, but the volume would increase.

To increase the pitch, you need to play back the numbers more often.

Quote
make the pitch remain constant while the audio is slowed or sped up
My MP3 podcast player is able to do this, but this is because MP3s represent sound in an entirely different way than CDs.

MP3 encoding measures the primary sound frequencies present in a piece of sound, and records information like:
- This sample of sound lasts for (say) 5ms
- It consists of 440Hz at -10dB
- and 880Hz at -15dB

If the player plays these two tones for only 2.5ms, the tempo will be sped up by a factor of 2, but the pitch will remain unchanged.

On the other hand, the player could play each tone at twice the frequency, but for a full 5ms. This changes the pitch but not the tempo.

This is simpler with MP3 because the pitch and duration (and amplitude) are recorded separately, and can be changed independently.
Logged
 

Offline wolfekeeper

  • Naked Science Forum King!
  • ******
  • 1678
  • Activity:
    0%
  • Thanked: 79 times
Re: Why Does Changing The Speed Of Digital Audio Change The Pitch?
« Reply #3 on: 23/02/2018 17:24:38 »
The pitch of a sound is entirely determined by how far apart in time the peaks are in the soundwave. When you play a sound faster, the peaks become closer together and the pitch goes up. When you play a sound slower, they're further apart, and the pitch goes down. And that's true whether you do it digitally or with analogue tapes or with vinyl.
Logged
 

Offline alancalverd

  • Global Moderator
  • Naked Science Forum GOD!
  • ********
  • 21160
  • Activity:
    64%
  • Thanked: 60 times
  • Life is too short for instant coffee
Re: Why Does Changing The Speed Of Digital Audio Change The Pitch?
« Reply #4 on: 24/02/2018 00:40:11 »
Whilst you can deliberately modulate the frequency of pulses coming from the CD/DVD deck by altering the speed of rotation, most "civilian" players (as distinct from studio machines) incorporate a buffer to compensate for wow and flutter caused by unintended speed variations or track eccentricity.

The system is basically a linear stack that reads in at whatever frequency the bits are generated, and reads out at the other end of the stack at exactly 44100 bits/second. You can do all sorts of manipulations to feed back a read speed control signal or skip bits to prevent stack overflow or underflow.
Logged
Helping stem the tide of ignorance
 



  • Print
Pages: [1]   Go Up
« previous next »
Tags: cd audio  / speed/pitch change 
 
There was an error while thanking
Thanking...
  • SMF 2.0.15 | SMF © 2017, Simple Machines
    Privacy Policy
    SMFAds for Free Forums
  • Naked Science Forum ©

Page created in 0.54 seconds with 39 queries.

  • Podcasts
  • Articles
  • Get Naked
  • About
  • Contact us
  • Advertise
  • Privacy Policy
  • Subscribe to newsletter
  • We love feedback

Follow us

cambridge_logo_footer.png

©The Naked Scientists® 2000–2017 | The Naked Scientists® and Naked Science® are registered trademarks created by Dr Chris Smith. Information presented on this website is the opinion of the individual contributors and does not reflect the general views of the administrators, editors, moderators, sponsors, Cambridge University or the public at large.