Slowing down the playback of an audio file without changing its pitch?

后端 未结 5 2129
旧巷少年郎
旧巷少年郎 2021-01-04 12:12

I am working on an application for college music majors. A feature i am considering is slowing down music playback without changing its pitch. I have seen this done in comme

相关标签:
5条回答
  • 2021-01-04 12:33

    This site explains how it's done in the physical world: http://www.wendycarlos.com/other/Eltro-1967/index.html

    I don't know how you would emulate that in software though... I'll keep looking

    0 讨论(0)
  • 2021-01-04 12:34

    audacity does it out of the box and it's free. THere are several plug ins for mp3 players as well that are free. Apparently it's pretty easy to do with an mp3 since it's already coded in the frequency domain.

    0 讨论(0)
  • 2021-01-04 12:38

    I use soundstretch to speed up podcasts which is works quite well, haven't tried it on music though.

    0 讨论(0)
  • 2021-01-04 12:44

    Timestretching is quite hard. The more you slow down or speed up the sound the more artifacts you get. If you want to know what they sound like listen to "The Rockafeller Skank" by Fat Boy Slim. There are a lot of ways to do it that all have their own strengths and weaknesses. The math can get really complex. That's why there are so many proprietary algorithms.

    This page explains things a bit clearer than I can and links to the Dirac library. http://www.dspdimension.com/admin/time-pitch-overview/

    I found this link for java code to do pitch shifting/timestretching http://www.adetorres.com/keychanger/KeyChangerReadme.html

    0 讨论(0)
  • One way to do it would be to double the sampling rate without changing the sampling rate of your source. (Low quality example, but easy to implement. Note: You can also decrease the sampling rate as well).

    Check out any math related to phase vocoders.

    Another common method is to create an array of fft bins that store data for scheduled intervals of your sound. Then you can choose how quickly to iterate through the bins, and you can re-synthesize that audio data for as long as you choose thus enabling you to stretch out one short segment of your sound for as long as you like.

    0 讨论(0)
提交回复
热议问题