Time stretching/compressing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Dave2002
    Full Member
    • Dec 2010
    • 18061

    Time stretching/compressing

    I'd be interested to know how time stretching/compressing of digital music samples is done - mostly.

    Small changes in pitch could be done by stretching or compressing a section of music. This would "distort" the sound in so far as the duration of each section would change - but for small pitch changes, most of us would not notice a difference of one or two seconds over a period of a minute. Even people with good absolute pitch might not notice small consistent differences in section length affecting the perceived pitches.

    A simple method would be to simply put the digital data sample in a buffer, then clock it out using a timing signal based on a raised or lowered clock frequency. With so many circuits now completely digital, with very accurate clocks, I'm not sure that this method would be used much. It would have the merit of being fast in operation.

    The process could be simulated in software, which would be a lot slower, but may well be the way some editing systems do this.

    These approaches would only work for small fixed amounts of stretch or compression. If there was any variation in the degree of stretch or compression, this would probably be very audible, and unpleasant.

    I'm fairly sure that audio software is available to do this sort of thing - but most of us don't have access to it. Things get more complex with video, where decisions may have to be made as to whether to stretch/compress the video data or the audio tracks, or both. Audio and video editing tools can probably do most of these things, though they may not always do the changes in the way which is desired by the creator. One creative artist may want to show a video sequence with a gradual "slowing down" of time - by stretching the video, but may want the backing track to carry on with similar pitching to before, while another may want the audio to take a dive. It becomes technically more complicated if such operations are applied to both video and audio components at the same time, though I suspect that some film makers do this "all the time".
  • Richard Barrett
    Guest
    • Jan 2016
    • 6259

    #2
    This and some of your other posts of late suggest that you might do well to read a book on digital signal processing. Curtis Roads' The Computer Music Tutorial is an excellent all round textbook, probably the best one I've seen that approaches the subject from a musical point of view.

    Comment

    • Bryn
      Banned
      • Mar 2007
      • 24688

      #3
      Originally posted by Richard Barrett View Post
      This and some of your other posts of late suggest that you might do well to read a book on digital signal processing. Curtis Roads' The Computer Music Tutorial is an excellent all round textbook, probably the best one I've seen that approaches the subject from a musical point of view.
      Published 1996? Has not rather a lot happened in the field since then?

      Comment

      • Richard Barrett
        Guest
        • Jan 2016
        • 6259

        #4
        Originally posted by Bryn View Post
        Published 1996? Has not rather a lot happened in the field since then?
        Yes but the basic principles of DSP remain the same and nobody has yet written such a comprehensive account of the field.

        Comment

        • Dave2002
          Full Member
          • Dec 2010
          • 18061

          #5
          Originally posted by Richard Barrett View Post
          Yes but the basic principles of DSP remain the same and nobody has yet written such a comprehensive account of the field.
          Thanks. I am not completely unaware, but I didn’t know about the book by Curtis Roads.



          Some while back I implemented filters using z transforms. I found Hamming’s book on digital filters very useful.
          https://www.goodreads.com/book/show/...igital_Filters The one here is dated 1997, though I think the first edition was way before that - 1977. I also attempted sub-band coding to compress data, which works for music, but very low bit rate speech processing for communications might use voice models, the principles of which were to some extent known from before the 1980s.

          Comment

          • MrGongGong
            Full Member
            • Nov 2010
            • 18357

            #6
            Originally posted by Dave2002 View Post
            I'm fairly sure that audio software is available to do this sort of thing - but most of us don't have access to it..
            Here you go





            and so on and so on

            GO hyperstretch........

            Comment

            • Lordgeous
              Full Member
              • Dec 2012
              • 840

              #7
              For audio time stretching/reducing I've tried various programmes. The cheaper ones only seem to work for very small degrees, the two that really DO work are of course the most expensive: Serato and Melodyn. No idea how they work though!

              Comment

              Working...
              X