Mix and Render

Effects, Recipes, Interfacing with other software, etc.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
JackA
Posts: 14
Joined: Wed Mar 25, 2015 9:17 pm
Operating System: Please select

Mix and Render

Post by JackA » Thu Apr 02, 2015 2:33 am

Robert J. H. wrote:
JackA wrote:Hi again everyone. I tried one thing, maybe I'm not using Audacity correctly. I tried the "Normalize" feature, it was set to -1dB. I figured I'd include the DC offset function. My test tracks are a quantity of 16, about 4 minutes long. With my old Acer laptop, it took forever to accomplish, one track at a time. When finished, it boosted all waverforms/tracks to, I guess, -1dB. It was overpowering LOUD. Also, this is the same reason why I shy from the "Amplify" feature, it takes quite a while on a slow computer. Thank you.
The problem with "Normalise" is that it treats each track individually and you'll lose the balance of the tracks--they are all -1 dB now.

In order to normalise the project, you must use "Amplify".
You'll first render all tracks into one.
It's best to mix and render them to a new track (Ctrl+Shift+m).
Select all tracks and open amplify, add the -1 dB to the proposed factor (-11 dB --> -12 dB), Ok.

You can now delete the mixed track.
The whole project has now -1 dB overall while the relationship is still the same.
The settings of the gain sliders and the exclusion of muted tracks are included in this method.

The normalise button that I've proposed above (next to the master slider) would just do that:
- Mix down the tracks in the background
- The master slider would now have the negative found maximum peak, that is, 0 dB minus x dB.

You would afterwards decrease the master gain by an additional 1 dB in order to have this head room.

Audacity wouldn't of course mix down the track physically, there are efficient structures (Fennwick tree for instance) to keep track of the running peaks in each track on import/creation/modification/playback.

Robert
Robert, didn't even know I could mix and render to a new track. Let me try your instructions, not sure what the rendered new track provides, but let me find out.

Note: I have always been curious what happens when you add sound to sound. Does adding a -10dB sound to another -10dB sound, does it remain -10dB? Is there an appropriate forum here to discuss?

Thank you.

Best,
Jack
Last edited by JackA on Fri Apr 24, 2015 4:51 pm, edited 2 times in total.
Reason: Split to new topic , given relevant title and moved to correct forum

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Mix and Render

Post by steve » Thu Apr 02, 2015 2:41 am

JackA wrote:Does adding a -10dB sound to another -10dB sound, does it remain -10dB?
Mixing two sounds of equal amplitude will produce a signal that is at most +6dB higher than the individual tracks. The exact level depends on the relative phase of the two signals (and rare cases may even be less than the peak level of the original signals).

If you want to discus this further, I'd suggest starting a new topic in this part of the forum: http://forum.audacityteam.org/viewforum.php?f=28
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Robert J. H.
Posts: 3633
Joined: Thu May 31, 2012 8:33 am
Operating System: Windows 10

Re: Mix and Render

Post by Robert J. H. » Thu Apr 02, 2015 3:47 am

JackA wrote:Note: I have always been curious what happens when you add sound to sound. Does adding a -10dB sound to another -10dB sound, does it remain -10dB? Is there an appropriate forum here to discuss?

Thank you.

Best,
Jack
When calculating with dB, one should transfer it back to the linear scale in order to do it right.

6.02 dB = 2.0 linearly.
0 dB FS = 1.0 linearly
-6.02 dB = 0.5 linearly.
and -20 dB is 0.1 linearly.
Let's add up -20 dB audio:
If the tracks are identical, we will naturally sum the maxima (peaks in both tracks.
The peak is 0.1 (-20 dB), either positive or negative, doesn't matter.
The sum is 0.1 * 2 = 0.2.
A linear multiplication is just the same as addition of dB values.
Thus, -20 dB + 6.02 dB = -13.97 dB.
That's the peak of the mixed track.

It is more complicated if the tracks do not have the same content but the same peak of -20 dB.
The peak in the mixed track can be anything between
0.1 + 0.1 = 0.2 (what we've had before) or
-0.1 + -0.1 = -0.2 (again, same as before, at least in dB) or
-0.1 + 0.1 = 0 = -inf dB.
The value lies therefore between 0 and 0.2 linearly.
The statistical average gives forecasts a value of 1.4141 instead of 2 for the multiplication:
1.4141 * 0.1 = 0.1414 or in the dB scale:
3.01 dB + -20 dB = -16.98 dB.

Different tracks mixed down will practically always have a lower peak than identical ones (unless you're unlucky).
The 3 dB rule does actually apply to the summation of noise. I think that a song comes nearer to the 6 dB rule since the peaks will coincide on the main beats.

However, the conclusion is that you can't tell the peak of the rendered track before you've added up the audio sample by sample.
To answer your specific question from above:
Adding up two tracks with -10 dB will give a peak from -inf dB (one track is identical but inverted) up to -4 dB (both tracks are the same).

The calculation with linear values is even more advantageous if the tracks have different dB values.

Robert

Ps.
Why didn't I make the examples with -10 dB?
Because the linear number is too odd. Halving the dB is equal to taking the square root of the linear term:
-20 dB = 0.1, -10 dB = root(0.1) = roughly 0.32 (0.32*0.32=0.1024)
or more accurately 0.31622776601683789.

Post Reply