VideoHelp Forum
+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. Hey All,

    I've got some samples (mp3's) I'm looking to apply some filters to (via command line, end up using a bat file), but looking at the SOX docs the values it's wanting don't mathematically compute in my brain to the values I've found else were when I was applying the filter in Audacity (using GUI).

    If I wanted to do the following in SOX (these below are for Audacity) what would I need to type in the command line?

    First I'm trying to change the 'pitch' of a MONO sample by 2.5 percent.

    I would then duplicate the sample, and on the duplicated part, I would apply a 'delay' filter with the following criteria

    Delay type: regular
    Delay level per echo: -6.00
    Delay Time: 0.03
    Pitch change effect: Pitch/Tempo
    Pitch change per echo (semitones): 0.001
    Number of echos: 30
    Allow duration to change: yes

    Then I would turn the two mono samples into one stereo sample and then amplify the whole sample by 0.5 (to make it a little louder)

    Is this at all possible with SOX, maybe using multiple commands over to it?

    Thanks for any help offered.
    Regards.
    Quote Quote  
  2. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    Looks like you will need four invocations. First a call to sox to change the pitch (helpfully called 'pitch' in the list of effects). Then a simple file copy to duplicate it. Then another call to sox to apply the effect ('echo' or 'echos') to one file. Finally another call to sox to combine the two files into stereo ('-M') and adjust the 'gain.'
    Quote Quote  
  3. Originally Posted by PeeJayGee View Post
    First I'm trying to change the 'pitch' of a MONO sample by 2.5 percent.
    Originally Posted by JVRaines View Post
    First a call to sox to change the pitch (helpfully called 'pitch' in the list of effects). '
    so can you tell me how many 'cents' is 2.5 percent?

    Code:
    pitch [−q] shift [segment [search [overlap]]]
    
    Change the audio pitch (but not tempo).
    
    shift gives the pitch shift as positive or negative ‘cents’ (i.e. 100ths of a semitone).
    Quote Quote  
  4. Appreciate that, and the website link, didn't even know that existed.
    Quote Quote  
  5. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    I'm too lazy to remember the math so I always Google for a calculator!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!