Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Want to slow down music but keep the pitch.

  1. #11
    Join Date
    May 2008
    Location
    UK
    Beans
    37
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Want to slow down music but keep the pitch.

    I have done this for speeches that I had to transcribe. Use Synaptic or apt-get to install sox and libsox-fmt-all. Then at the command line type:

    Code:
    sox originalfile slowerfile tempo 0.6 rabbit -c0
    This would create a new file called slowerfile at the same pitch but 60% of the speed/tempo of originalfile.

  2. #12
    Join Date
    Mar 2008
    Beans
    108
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Want to slow down music but keep the pitch.

    Quote Originally Posted by luctor View Post
    +1 for Sonic Visualizer. It uses rubberband as time stretcher.
    Had to build it from source (both rubberband and sonic-visualiser) because there´s no amd64 package
    Also the beat/tempo detection is pretty good, you'll need the qm plugins for that.
    Info:
    Ubuntu 8.04-64 on an amd64 with 4gb of ram, several hundred GB of hard drive space, could care less about audio output though I do have the default pulse stuff.

    question:
    What silly little step, memo, note, or other doodad did I miss in compiling sonic visualizer.

    I have used SV for a long time before I left the MS fold for Ubuntu and havent had need since until now and when I try compiling 'rubber band' from source I get the following (quoted far below).

    Vamp seems to compile ok and the rubber band configure doesnt seem to throw errors or other junk.

    Synaptic spews lots of things when searching for ladspa though nothing which looks like a solution to me.

    # make
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/AudioCurve.o src/AudioCurve.cpp
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/ConstantAudioCurve.o src/ConstantAudioCurve.cpp
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/FFT.o src/FFT.cpp
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/HighFrequencyAudioCurve.o src/HighFrequencyAudioCurve.cpp
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/PercussiveAudioCurve.o src/PercussiveAudioCurve.cpp
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/Profiler.o src/Profiler.cpp
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/Resampler.o src/Resampler.cpp
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/rubberband-c.o src/rubberband-c.cpp
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/RubberBandStretcher.o src/RubberBandStretcher.cpp
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/SilentAudioCurve.o src/SilentAudioCurve.cpp
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/SpectralDifferenceAudioCurve.o src/SpectralDifferenceAudioCurve.cpp
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/StretchCalculator.o src/StretchCalculator.cpp
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/StretcherImpl.o src/StretcherImpl.cpp
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/StretcherProcess.o src/StretcherProcess.cpp
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/StretcherChannelData.o src/StretcherChannelData.cpp
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/Thread.o src/Thread.cpp
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/Window.o src/Window.cpp
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/sysutils.o src/sysutils.cpp
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/main.o src/main.cpp
    g++ -o bin/rubberband src/AudioCurve.o src/ConstantAudioCurve.o src/FFT.o src/HighFrequencyAudioCurve.o src/PercussiveAudioCurve.o src/Profiler.o src/Resampler.o src/rubberband-c.o src/RubberBandStretcher.o src/SilentAudioCurve.o src/SpectralDifferenceAudioCurve.o src/StretchCalculator.o src/StretcherImpl.o src/StretcherProcess.o src/StretcherChannelData.o src/Thread.o src/Window.o src/sysutils.o src/main.o -lsndfile -lsamplerate -lfftw3 -lm -lpthread
    ar rsc lib/librubberband.a src/AudioCurve.o src/ConstantAudioCurve.o src/FFT.o src/HighFrequencyAudioCurve.o src/PercussiveAudioCurve.o src/Profiler.o src/Resampler.o src/rubberband-c.o src/RubberBandStretcher.o src/SilentAudioCurve.o src/SpectralDifferenceAudioCurve.o src/StretchCalculator.o src/StretcherImpl.o src/StretcherProcess.o src/StretcherChannelData.o src/Thread.o src/Window.o src/sysutils.o
    g++ -shared -Wl,-Bsymbolic -Wl,-soname=librubberband.so.2 src/AudioCurve.o src/ConstantAudioCurve.o src/FFT.o src/HighFrequencyAudioCurve.o src/PercussiveAudioCurve.o src/Profiler.o src/Resampler.o src/rubberband-c.o src/RubberBandStretcher.o src/SilentAudioCurve.o src/SpectralDifferenceAudioCurve.o src/StretchCalculator.o src/StretcherImpl.o src/StretcherProcess.o src/StretcherChannelData.o src/Thread.o src/Window.o src/sysutils.o -o lib/librubberband.so -lsamplerate -lfftw3 -lm -lpthread
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/vamp/RubberBandVampPlugin.o src/vamp/RubberBandVampPlugin.cpp
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/vamp/libmain.o src/vamp/libmain.cpp
    g++ -shared -Wl,-Bsymbolic -Wl,--version-script=src/vamp/vamp-plugin.map -o lib/vamp-rubberband.so src/AudioCurve.o src/ConstantAudioCurve.o src/FFT.o src/HighFrequencyAudioCurve.o src/PercussiveAudioCurve.o src/Profiler.o src/Resampler.o src/rubberband-c.o src/RubberBandStretcher.o src/SilentAudioCurve.o src/SpectralDifferenceAudioCurve.o src/StretchCalculator.o src/StretcherImpl.o src/StretcherProcess.o src/StretcherChannelData.o src/Thread.o src/Window.o src/sysutils.o src/vamp/RubberBandVampPlugin.o src/vamp/libmain.o -L/usr/local/lib -lvamp-sdk -lsamplerate -lfftw3 -lm -lpthread
    g++ -DHAVE_FFTW3 -DFFTW_DOUBLE_ONLY -DNO_THREAD_CHECKS -g -O2 -fPIC -Wall -I/usr/local/include -Irubberband -Isrc -c -o src/ladspa/RubberBandPitchShifter.o src/ladspa/RubberBandPitchShifter.cpp
    In file included from src/ladspa/RubberBandPitchShifter.cpp:15:
    src/ladspa/RubberBandPitchShifter.h:18:20: error: ladspa.h: No such file or directory
    In file included from src/ladspa/RubberBandPitchShifter.cpp:15:
    src/ladspa/RubberBandPitchShifter.h:29: error: ISO C++ forbids declaration of ‘LADSPA_Descriptor’ with no type
    src/ladspa/RubberBandPitchShifter.h:29: error: expected ‘;’ before ‘*’ token
    src/ladspa/RubberBandPitchShifter.h:52: error: ‘LADSPA_PortDescriptor’ does not name a type
    src/ladspa/RubberBandPitchShifter.h:53: error: ‘LADSPA_PortRangeHint’ does not name a type
    src/ladspa/RubberBandPitchShifter.h:56: error: ‘LADSPA_PortDescriptor’ does not name a type
    src/ladspa/RubberBandPitchShifter.h:57: error: ‘LADSPA_PortRangeHint’ does not name a type
    src/ladspa/RubberBandPitchShifter.h:59: error: ‘LADSPA_Properties’ does not name a type
    src/ladspa/RubberBandPitchShifter.h:61: error: ‘LADSPA_Descriptor’ does not name a type
    src/ladspa/RubberBandPitchShifter.h:62: error: ‘LADSPA_Descriptor’ does not name a type
    src/ladspa/RubberBandPitchShifter.h:64: error: ‘LADSPA_Handle’ does not name a type
    src/ladspa/RubberBandPitchShifter.h:65: error: ‘LADSPA_Handle’ has not been declared
    src/ladspa/RubberBandPitchShifter.h:65: error: ‘LADSPA_Data’ has not been declared
    src/ladspa/RubberBandPitchShifter.h:66: error: ‘LADSPA_Handle’ has not been declared
    src/ladspa/RubberBandPitchShifter.h:67: error: ‘LADSPA_Handle’ has not been declared
    src/ladspa/RubberBandPitchShifter.h:68: error: ‘LADSPA_Handle’ has not been declared
    src/ladspa/RubberBandPitchShifter.h:69: error: ‘LADSPA_Handle’ has not been declared
    src/ladspa/RubberBandPitchShifter.cpp:59: error: ‘LADSPA_PortDescriptor’ does not name a type
    src/ladspa/RubberBandPitchShifter.cpp:73: error: ‘LADSPA_PortDescriptor’ does not name a type
    src/ladspa/RubberBandPitchShifter.cpp:89: error: ‘LADSPA_PortRangeHint’ does not name a type
    src/ladspa/RubberBandPitchShifter.cpp:126: error: ‘LADSPA_PortRangeHint’ does not name a type
    src/ladspa/RubberBandPitchShifter.cpp:165: error: ‘LADSPA_Properties’ does not name a type
    src/ladspa/RubberBandPitchShifter.cpp:168: error: ‘LADSPA_Descriptor’ does not name a type
    src/ladspa/RubberBandPitchShifter.cpp:192: error: ‘LADSPA_Descriptor’ does not name a type
    src/ladspa/RubberBandPitchShifter.cpp:216: error: expected initializer before ‘*’ token
    src/ladspa/RubberBandPitchShifter.cpp:272: error: ‘LADSPA_Handle’ does not name a type
    src/ladspa/RubberBandPitchShifter.cpp:284: error: variable or field ‘connectPort’ declared void
    src/ladspa/RubberBandPitchShifter.cpp:284: error: ‘LADSPA_Handle’ was not declared in this scope
    src/ladspa/RubberBandPitchShifter.cpp:285: error: expected primary-expression before ‘unsigned’
    src/ladspa/RubberBandPitchShifter.cpp:285: error: ‘LADSPA_Data’ was not declared in this scope
    src/ladspa/RubberBandPitchShifter.cpp:285: error: ‘location’ was not declared in this scope
    make: *** [src/ladspa/RubberBandPitchShifter.o] Error 1

  3. #13
    Join Date
    Nov 2006
    Location
    Denmark
    Beans
    635

    Re: Want to slow down music but keep the pitch.

    from this error message:

    Code:
    src/ladspa/RubberBandPitchShifter.h:18:20: error: ladspa.h: No such file or directory
    it looks like you are missing the LADSPA SDK (one header file, basically). Install it :

    Code:
    sudo apt-get install ladspa-sdk

  4. #14
    Join Date
    Jan 2005
    Location
    Pretoria, South Africa
    Beans
    41

    Re: Want to slow down music but keep the pitch.

    Here's another way to do it with mplayer:
    http://ubuntuforums.org/showthread.php?t=1226982

    Has the advantage that you don't need to change any files, it all happens on the fly (useful for me working with long transcripts in mp3 format).

  5. #15
    Join Date
    Dec 2006
    Beans
    7,309

    Re: Want to slow down music but keep the pitch.

    Hi Ndlovu,

    Quote Originally Posted by Ndlovu View Post
    Here's another way to do it with mplayer:
    http://ubuntuforums.org/showthread.php?t=1226982
    And yet another if you look at Tip 1: Using 'scaletempo'... :

    Top 10 Tricks and Tips for the svn MPlayer
    http://ubuntuforums.org/showthread.php?t=1154431

    All the best,

    Andrew
    You think that's air you're breathing now?

  6. #16
    Join Date
    Jan 2005
    Location
    Pretoria, South Africa
    Beans
    41

    Re: Want to slow down music but keep the pitch.

    Hi Andrew,

    Quote Originally Posted by andrew.46 View Post
    And yet another if you look at Tip 1: Using 'scaletempo'... :

    Top 10 Tricks and Tips for the svn MPlayer
    http://ubuntuforums.org/showthread.php?t=1154431
    Scaletempo looks great, especially being able to adjust the tempo on the fly. I'm just not brave enough to compile the svn version yet!

    Thanks for your guides, it's great documentation if I ever need the advanced functionality.

  7. #17
    Join Date
    Dec 2006
    Beans
    7,309

    Re: Want to slow down music but keep the pitch.

    Hi Ndlovu,

    Quote Originally Posted by Ndlovu View Post
    Scaletempo looks great, especially being able to adjust the tempo on the fly. I'm just not brave enough to compile the svn version yet!
    No need to compile the svn MPlayer if you can wait for the release of Karmic Koala which will have a version of MPlayer that will be able to use the scaletempo filter.

    All the best,

    Andrew
    You think that's air you're breathing now?

  8. #18
    Join Date
    Jun 2006
    Location
    Houston, TX
    Beans
    91
    Distro
    Ubuntu Studio 9.04 Jaunty Jackalope

    Re: Want to slow down music but keep the pitch.

    If you REALLY want to go crazy with timestretching, there's a program called paulstretch 2.0

    http://hypermammut.sourceforge.net/paulstretch/

    This program is completely insane and impractical...and I absolutely love it.

    You can stretch a bassdrum out for several years if you so desire (Although, for obvious reasons, I wouldn't recommend that)

    Anyways, if you want a precompiled binary you can PM me....

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •