fade- overlap track?

Help for Audacity on macOS.
Forum rules
ImageThis forum is for Audacity on macOS 10.4 and later.
Please state which version of macOS you are using,
and the exact three-section version number of Audacity from "Audacity menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: fade- overlap track?

Post by steve » Mon Feb 15, 2016 4:49 pm

Gale Andrews wrote:I can't see the point in that unless it's essential to have only one track or unless you are one of the "challenged" who want to just click and not make any decisions.
In my opinion, now that (in Audacity 2.1.3 alpha) we have in "Crossfade tracks" the "Automatic" setting for fade direction, "Crossfade Tracks" is the better effect to use. The main advantage of "Crossfade Tracks" is that it allows the user to precisely set the overlap that becomes the crossfade. However, we have many users that insist on putting their mix into one single track as they work - the Crossfade Clips effect is primarily for those users.

Yes the Crossfade Clips effect can be used if you have a file with several songs one after the other, and using Crossfade Clips is very quick and convenient for this type of task as long as you are not concerned about the "overlap" being precise. In such a case, my workflow would be something like this:

1) Import the file.
2) Identify the end of the first 'song' / start of the second 'song'.
3) Select any silence, or "nearly silent" gap between the songs and "Split Delete". If there is no noticeable 'gap' between the songs, then I'd just add a Split line between the songs.
4) Select across the split line, roughly 50/50 and apply the Crossfade Clips effect.

Looking at what happens with close attention to technical details:

The manual states:
If the selected region is continuous audio with no splits, the first half and last half of the selected audio will be crossfaded.
If you judge your selection accurately enough, then there is no need for a split line, but if you misjudge, then you probably won't get what you want.

Let's say that you misjudge quite badly and select 60/40 (%) rather than 50/50 (this is close to a 'worst case scenario' for no splits)

If there is a split line:
The first 60%, from the start of the selection to the split line, will fade out.
The final 40%, from the split line to the end of the selection, will fade in.
The two audio clips are then overlapped such that the fade-out of the first track ends at the same time as the fade-in of the second track ends. (The tracks are always overlapped such that silent end of the longer fade occurs at the same time as the loud end of the shorter fade - this ensures that only the faded regions overlap.)
The second track therefore does not begin to fade in until a short time after the first track has started fading out. However, this 'error' is hardly noticeable. The effect is very forgiving in this case.

If there is no split line:
In this case, as the manual says, the first 50% will fade out and the second 50% will fade in.
However, if we have misjudged the mid-point and the first song runs for 60% of the selection, then the first 1/5th of the fade in (which should be the second song, is actually still the first song, and by the time that the second song starts, we are already 20% into the fade-in, so the second song does not fade from silence. This can be demonstrated by crossfading a tone into white noise. In these files (attached), the source material was 5 seconds of 440 Hz tone followed by 5 seconds of white noise. The selection was from 2 seconds to 7 seconds (3 seconds before the end of the tone, to 2 seconds after the end of the tone - a 60/40 selection).
with-split.wav
(689.21 KiB) Downloaded 39 times
without-split.wav
(646.15 KiB) Downloaded 25 times
Listen to how the noise fades in.
We should probably have a tip to say that it is generally best to have a split between songs, but I don't think we should go into detail about all this "under the hood" stuff. Do you think you could work that in somehow?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: fade- overlap track?

Post by Gale Andrews » Wed Feb 17, 2016 1:35 am

steve wrote:
Gale Andrews wrote:I can't see the point in that unless it's essential to have only one track or unless you are one of the "challenged" who want to just click and not make any decisions.
In my opinion, now that (in Audacity 2.1.3 alpha) we have in "Crossfade tracks" the "Automatic" setting for fade direction, "Crossfade Tracks" is the better effect to use. The main advantage of "Crossfade Tracks" is that it allows the user to precisely set the overlap that becomes the crossfade. However, we have many users that insist on putting their mix into one single track as they work - the Crossfade Clips effect is primarily for those users.
I haven't seen those, only the people fading multiple songs in one album track.

Are those who want to put a mix into one track in the Special Interest boards where I don't look so much?
steve wrote:[...]If there is no split line:
In this case, as the manual says, the first 50% will fade out and the second 50% will fade in.
However, if we have misjudged the mid-point and the first song runs for 60% of the selection, then the first 1/5th of the fade in (which should be the second song, is actually still the first song, and by the time that the second song starts, we are already 20% into the fade-in, so the second song does not fade from silence. This can be demonstrated by crossfading a tone into white noise. In these files (attached), the source material was 5 seconds of 440 Hz tone followed by 5 seconds of white noise. The selection was from 2 seconds to 7 seconds (3 seconds before the end of the tone, to 2 seconds after the end of the tone - a 60/40 selection).
with-split.wav
without-split.wav
Listen to how the noise fades in.
I would find that hard to describe because it is not easy to me to describe where the fade in should start if the selection is not 50/50.

If more of the tone than noise is in the selection, then after crossfade with split line, I hear the noise starts late compared to if the selection was 50/50. I hear the noise start at about 3s. Why 3s (1/3rd through the result) for a 60/40 selection?

If more of the noise than tone is in the selection, then after crossfade with split line, I hear the tone finishes early compared to if the selection was 50/50.

I also note that when the selection is not 50/50 and there is a split line, then the result is longer than one half of the original selection. But if the selection is 50/50 and there is a split line, the result is half the length of the original selection, just like when there is no split. Right? So where the Manual says
if the selected region is continuous audio with no splits, the first half and last half of the selected audio will be crossfaded.
perhaps it should say something like
if the selected region is continuous audio with no splits, the first half and last half of the selected audio will always be crossfaded, even if the selection includes more of one song than the other.
Then this leads to saying something like using a split line will ensure the crossfade starts or ends at the correct place if the break between the songs is deliberately or accidentally not half way through the selection.

Perhaps you see a better way to put it?

My question would be then, should Crossfade Clips guess by some sort of threshold level where the track break is, so that a split line is not needed?
steve wrote:We should probably have a tip to say that it is generally best to have a split between songs, but I don't think we should go into detail about all this "under the hood" stuff. Do you think you could work that in somehow?
Yes it should be said that it is safer to have a split line. It would not have occurred to me to add a split line if I deliberately wanted more of one song than another in the selection and then the crossfade sounded wrong.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

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

Re: fade- overlap track?

Post by steve » Wed Feb 17, 2016 2:09 pm

Gale Andrews wrote:we have many users that insist on putting their mix into one single track as they work...
Gale Andrews wrote:I haven't seen those
It's not usually stated in the topic title, but it quite regularly comes out when trying to clarify what the user's workflow is. it's one of the common reasons why some users like to work with lots of projects open - have one track per project and copy / paste from the track one project into the track of another. It's a 'valid' way of working, though imo much less efficient (and probably less safe) than working with multiple tracks in one project. I do suggest that they try using Audacity's muli-track capability, but some seem to have difficulty getting their head round that way of working.
Gale Andrews wrote:I would find that hard to describe because it is not easy to me to describe where the fade in should start if the selection is not 50/50.
What I find difficult is to describe it without looking at it in terms of separate tracks, but for those that find it difficult to visualize working with multiple tracks, I don't think that kind of explanation will help much.

I'll have a go at making some illustrations.
Gale Andrews wrote:Then this leads to saying something like using a split line will ensure the crossfade starts or ends at the correct place
Nicely put - That's the crucial point that we need to lead up to.

Perhaps something along the lines of:
If the selected region is continuous audio with no splits, the first half and last half of the selected audio will be crossfaded. When crossfading song this way, the effect has no way of knowing where one song ends and the next song starts, so it assumes a half-way point and makes the length of each fade exactly 50% of the total selection length. If you accidentally or deliberately include more of one song than the other in the selection, then one of the fades will include a portion of both songs, and the crossfade will not be entirely smooth. Using a split line will ensure the crossfade starts or ends at the correct place.
Gale Andrews wrote:My question would be then, should Crossfade Clips guess by some sort of threshold level where the track break is, so that a split line is not needed?
I don't think there is any reliable way of doing that. Looking for the lowest amplitude would be the obvious approach, but we know how unreliable "Silence Finder" can be, and even my best attempts at improving that are fallible. There's also use cases such as crossfading across a glitch, where the "mid point" should be the 'loudest' part of the glitch.
Gale Andrews wrote:It would not have occurred to me to add a split line if I deliberately wanted more of one song than another in the selection and then the crossfade sounded wrong.
As I've used the effect, I've also discovered some new "tips and tricks" that I'd not thought of when I wrote the effect. When I have time I'll try to work them into the manual.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

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

Re: fade- overlap track?

Post by steve » Wed Feb 17, 2016 3:23 pm

steve wrote:I'll have a go at making some illustrations.
Do these make the difference any clearer?
They are intended to show how the tracks will fade ("constant power" fade) for two sequential songs - the first song is shown as blue shading, the second song as green shading. The red dotted line outlines the fade before they are overlapped by the effect into a crossfade.
crossfade-no-split.png
Crossfade Clips effect with no split between songs
crossfade-no-split.png (12.97 KiB) Viewed 558 times
crossfade-split-clips.png
Crossfade Clips effect with split line off-centre from selection
crossfade-split-clips.png (12.95 KiB) Viewed 558 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: fade- overlap track?

Post by Gale Andrews » Wed Feb 17, 2016 3:54 pm

steve wrote:
Gale Andrews wrote:Then this leads to saying something like using a split line will ensure the crossfade starts or ends at the correct place
Nicely put - That's the crucial point that we need to lead up to.

Perhaps something along the lines of:
If the selected region is continuous audio with no splits, the first half and last half of the selected audio will be crossfaded. When crossfading song this way, the effect has no way of knowing where one song ends and the next song starts, so it assumes a half-way point and makes the length of each fade exactly 50% of the total selection length. If you accidentally or deliberately include more of one song than the other in the selection, then one of the fades will include a portion of both songs, and the crossfade will not be entirely smooth. Using a split line will ensure the crossfade starts or ends at the correct place.
I am not fully understanding "one of the fades will include a portion of both songs". Even with deliberately selecting more of one song than the other, isn't the point of the crossfade that at least somewhere, both songs will sound together?

Perhaps to be more clear you could post your blue and green images of split and no-split after the crossfade, but I am still not sure if those images should be in the Manual.

If correct, I think it's an important point that a split-line crossfade with a non-equidistant selection will produce a selection longer than half the original length.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

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

Re: fade- overlap track?

Post by steve » Wed Feb 17, 2016 4:55 pm

Gale Andrews wrote:isn't the point of the crossfade that at least somewhere, both songs will sound together?
Yes, after they have been faded.

Breaking down the process of making a crossfade:
1) Fade out the end of the first song
2) Fade in the start of the second song
3) Overlap the two fades and mix them ('sum' them) together.

Steps 1 and 2 may be in any order - you can do step 2 then step 1 or step 1 then step 2 - but the fade-out should ideally contain only the end of the first song and the fade-in should contain only the start of the second song. That is what happens if there is a split line, as can be seen in this illustration:

Image

It should be only when the two fades are mixed (step 3) that both songs sound together. After step 3 you should hear the second song fade in from silence while the first song is fading out to silence.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: fade- overlap track?

Post by Gale Andrews » Fri Feb 19, 2016 3:09 pm

steve wrote:It should be only when the two fades are mixed (step 3) that both songs sound together. After step 3 you should hear the second song fade in from silence while the first song is fading out to silence.
I don't hear that in your demo case in the complete cross-faded selection, where selection before crossfade with split line is from 2 seconds to 7 seconds (3 seconds before the end of the tone to 2 seconds after the end of the tone).

After crossfade with split line, I don't hear the noise at all until about 3s. Spectrogram seems to confirm that.

So to my hearing, if the selection is not equidistant between songs, there will be a substantial area in the selection after crossfade where only one song is playing. Don't you agree?

So although I can see what you mean by "one of the fades will include a portion of both songs" (if you are referring to before the crossfade) I think it confusing. I would find it clearer to just say "Using a split line will ensure the crossfade starts or ends at the correct place."


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

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

Re: fade- overlap track?

Post by steve » Fri Feb 19, 2016 3:21 pm

Gale Andrews wrote:I don't hear that in your demo case in the complete cross-faded selection
Do you mean the "with-split.wav" or "without-split.wav"? I can't follow what you're saying.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: fade- overlap track?

Post by Gale Andrews » Fri Feb 19, 2016 4:32 pm

steve wrote:
Gale Andrews wrote:I don't hear that in your demo case in the complete cross-faded selection
Do you mean the "with-split.wav" or "without-split.wav"? I can't follow what you're saying.
The "with-split.wav" or the steps I understood you were doing:
where selection before crossfade with split line is from 2 seconds to 7 seconds (3 seconds before the end of the tone to 2 seconds after the end of the tone)
I am saying that in the selection after the crossfade (now 2s to 5s) I can only hear tone (which is visibly and audibly slightly fading out) from 2s to 3s. I hear no noise until 3s.

Same in "with-split.wav".


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

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

Re: fade- overlap track?

Post by steve » Fri Feb 19, 2016 6:16 pm

Gale Andrews wrote:I am saying that in the selection after the crossfade (now 2s to 5s) I can only hear tone (which is visibly and audibly slightly fading out) from 2s to 3s. I hear no noise until 3s.
yes, that's correct, but a significant difference between the two is that when there is a split, the first song will always fade to silence, and the second song always fades in from silence.

If there isn't a split, then one of the fades will either start or end abruptly unless the selection contains exactly the same length of the first song and the length of the second song.

In this extreme example, the second song does not start until half way through the fade-in:

Image

After mixing, note that the fade-in starts with audio from the end of the first song, which has been shifted to the left, and then the second song starts abruptly.
crossfaded-without-split.png
crossfaded-without-split.png (14.01 KiB) Viewed 541 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply