Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8498947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:32:22+00:00 2026-06-11T00:32:22+00:00

here is a solution to pad a track while mixing with another track. Sox

  • 0

here is a solution to pad a track while mixing with another track.

Sox : merge two audio files with a pad

$ sox short.ogg -p pad 6 0 | sox - -m long.ogg output.ogg

How to use this command mixing multiple tracks?

For example

audio1.wav (no pad)
audio2.wav (2s pad)
audio3.wav (2s pad)
audio4.wav (3s pad)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:32:24+00:00Added an answer on June 11, 2026 at 12:32 am

    pad 6 0 prepends 6 and appends 0 seconds of silence, so I assume you only want to prepend silence.

    You can do this with a while loop, for example in bash:

    cat <<EOF > infile
    audio1.wav 0
    audio2.wav 2
    audio3.wav 2
    audio4.wav 4
    EOF
    
    while read fname len; do
      sox $fname -p pad $len 0 | sox -m -p long.wav output.wav
    done < infile
    

    I would suggest keeping the files uncompressed until your done processing.

    Be careful of clipping when mixing, one way to avoid it is to apply -6dB gain to both signals and normalize after, e.g.:

      sox $fname -p pad $len 0 gain -6 | sox -m -p "| sox long.wav -p gain -6" output.wav gain -n
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Edit: I found a solution here http://mysql.bigresource.com/Track/mysql-8TvKWIvE/ assuming select takes a long time to
I've searched a long time and don't found an solution here yet. Also this
I've been working with Bea's solution here for a while and finding it very
Using the solution here , I'm adding two maps together and treating them as
the solution here: Jeditable CANCEL callback from AJAX callback? using onreset() doesnt seem to
I've tried the solution here , but it doesn't work. My table is like
There might be an easy solution here, but it seems to have me tripped
I'm searching for the cleanest solution here. I would like to code a stored
I thought I'd put the working solution here for others interested in a code
I'm guessing there is a simple solution here, but I've tried some things and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.