Fade and Crossfade
Fade effects frequently produce a transition from silence (fade in) or a transition to silence (fade out) but may equally refer to a transition from one volume level to another quieter or louder level. A crossfade is when one section of audio fades out while another fades in.
- Gale 16Aug14: I have not proofread it, but isn't it very long by our standards ? Should Sections 6 and 7 be on their own page? To aid discovery I would think a FAQ is required to link to this page and also to link to Fades and to Envelope Tool. It is not uncommon for users to ask "Do I have to use amplify in small sections to gradually make the sound quieter?".
Contents
- Linear Fade
- Exponential Fade
- Equal Power Fade
- Sine Curve Fade
- DJ Crossfade Curve
- Creating Fades with the Envelope Tool
- Creating a Crossfade
- Other plug-ins and tools
Linear Fade
This is the most simple type of fade where the level rises or falls at a constant rate. A linear fade in from silence is easily created in Audacity using . A linear fade out to silence is created using .
The "shape" of a fade is commonly described in terms that suggest the appearance of a constant level signal that has had the effect applied to it. For example, if a linear fade in is applied to a generated tone, the fade can be seen to follow a straight line from silence up to the original level.
Exponential Fade
This is another very common fade type. Its popularity stems from the fact that it closely models the way in which sounds naturally decay. For example, comparing the waveform of a gunshot recording with that of a bell, we can clearly see that although the time scales are very different, the shape of the sound as it decays is very similar:
In Audacity, the Envelope Tool produces exponential fades.
A similar (but not identical) fade shape may be produced by applying a linear fade several times to the same selection. For example, here is a fade created by applying the Fade Out effect, then repeating it three times using the CTRL + R shortcut (Repeat Last Effect).
Equal Power Fade
If one sound is fading out while another sound is fading in, this is called a crossfade. A common problem when crossfading two sounds using linear fade effects is that the volume level may drop a little midway through the transition. To mitigate this problem it is common to use a fade shape that, compared to a linear fade, bows up in the middle, so that the volume level stays a little higher in the middle of the transition. One of the most commonly used crossfade shapes is an "Equal Power Fade"; so called because the average power (and hence loudness) remains fairly constant during a crossfade transition for music and other uncorrelated sounds. The next image shows two tracks, one with white noise and one with pink noise that are crossfading using Equal Power Fades.
Sine Curve Fade
A raised sine curve (or cosine curve) is based on the shape of a sine wave. This fade type is often used for fading out music as it produces a smoother, more musical sounding fade out than a linear fade. It is also sometimes used as an alternative to the Equal Power Fade for crossfading as it avoids the possibility of the peak level increasing during the crossfade (Like linear fades, it produces an "Equal Gain" crossfade).
DJ Crossfade Curve
DJ Mixers have a crossfade slide control that is essentially two faders back to back in one unit. Moved in one direction it will fade in source A and fade out source B, and when moved to the other extreme it will fade out source A and fade in source B. Early DJ mixing desks crossfaders produced a (roughly) equal power crossfade, but in response to demand from DJs, other fade shapes were developed that have a more pronounced curve, thus making the mix more pronounced during the transition. More information about the history of DJ crossfaders can be found on the Rane website.
Modern DJ mixers provide a curve control to provide adjustment of the fade taper contour. The image below compares the shapes of an equal power fade with a high curve fade that is similar to what would be achieved by setting the curve control fairly high on a DJ mixer's crossfader.
Creating Fades with the Envelope Tool
| A true logarithmic fade will never reach its target level but will gradually get closer and closer to that level without ever reaching it. For a logarithmic fade out, this means that the audio level will get quieter and quieter but will never be totally silent. In practice, it is usual that a logarithmic fade out will only actually follow the logarithmic scale until it is very close to silence and will then be made to go silent by either dropping directly from the very low level to silence, or via a short linear fade to silence. |
Because the Envelope Tool uses logarithmic fades, creating a precise fade shape can be very fiddly, but with patience almost any type of fade shape can be achieved.
- The fade shape does not need to look exactly smooth to provide an effective fade. Check what the fade sounds like before spending an unnecessary amount of time trying to make the fade look right. The sound is far more important than what it looks like.
- To make small adjustments to the envelope it can be useful to expand the track vertically.
Tips for drawing fades with the Envelope Tool: In this example we will create a fade that starts at full volume, then starts to fade slowly, then gradually more rapidly to silence, as illustrated here:
- Begin the fade by setting a control point at the time position where the fade starts at full volume:
- Click on the waveform with the envelope tool at the "start position" of the fade.
- Drag the control point vertically to the nearest edge of the track to achieve full volume.
- Note that if you drag the point beyond the edge of the track, the control point will be removed.
- Set a control point where the fade becomes silent.
- Click on the waveform with the envelope tool at the "end position" of the fade.
- Drag the control point up or down toward the vertical centre of the track.
- Note that the fade will be almost silent for a large section of the fade.
- Click where you want to add additional control points as necessary to push out the envelope to the required shape.
Creating a Crossfade
Introduction
The purpose of a crossfade is to produce a smooth transition between two sections of audio. The two sections overlap and as one section fades out the other fades in. This technique is commonly used by DJ's, for "compilation" tracks and mashups. The use of crossfades is not limited to joining pieces of music, but can be used in many other situations where a smooth transition is required, including editing speech recordings, extending songs, creating loops for audio sequencers, repairing damaged recordings and much more.
How to Crossfade Two Tracks
First, the tracks should be imported or recorded. By default, importing two audio files will create two audio tracks one above the other. Similarly, recording a new track will by default create a new track below any other tracks in the project. This is the arrangement that we want as the starting point (for clarity the illustrations show mono tracks, but the procedure is exactly the same for stereo tracks).
Roughly position the tracks
Drag the second track to roughly the right place using the Time Shift tool
. Don't worry about getting the position too precise at this stage as we will adjust the position later. For crossfading two music tracks, an overlap of around 5 seconds is usually suitable, though sometimes a much shorter, or longer crossfade may sound better. How long the crossfade transition lasts is largely a matter of personal taste.
Align tracks more precisely
Tracks will often begin and end with a short period of silence. Leading/trailing silence may be removed by selecting and deleting. Audacity's Cut Preview can be useful to check that the selection to be deleted is correct.
The end of the first track will be the point at which the first track finally stops (has faded to silence). The start of the second track will be the point at which the second track starts to fade in.
After selecting the region to be crossfaded, create a split at both ends of the selection using CTRL + I. The split marks will greatly facilitate selecting the appropriate areas in each track.
Trim the tracks
If, as in the images above, it is necessary to trim the tracks further, select the unwanted region after the fade out (in the upper track in this case) by double-clicking in it, then delete it.
Apply fades
A fade out can then be applied to the overlapping section in the first track, and a fade in applied to the overlapping section of the second track.
- For rhythmic music with closely matched tempo this will often be undesirable and may be prevented by using fade shapes that bow up higher than a linear fade (such as the Equal Power fade shape).
- For crossfading music where there is a substantial difference in tempo, a smoother sounding crossfade may be achieved by allowing the volume to drop by the use of fade shapes that dip lower than a linear fade.
- Steve 17Oct12: I would envisage recommending the "Adjustable Fade" plug-in, if it ever makes it into the standard Audacity bundle.
- Gale 17Oct12: I would still recommend the two-thirds "rule" if you think it helps with a linear fade. Wiki supports legacy Audacity too.
- Steve 18Oct12: Where does this "2/3 rule" come from? I can see that it is a poor man's substitute for an equal power fade, but should it also carry the warning that it will probably increase the peak amplitude and may cause clipping? Although the technique does help to reduce the sense of a drop in volume in the middle of the fade, the trade-off is that there is often a sense of a drop in volume near the end of the fade. A better (though fiddly) workaround for the lack of an equal power fade is to use the envelope tool. A better and not fiddly workaround (that may be best for Audacity 1.2.x) would be to install a pair of "one-click" equal power fade effects (similar to Cross-Fade In and Cross-Fade Out").
- Gale: 19Oct12: It's Dominic's "rule" which he advocated in the 1.2 Manual and then in the 1.3 Beta Manual (in the now culled "Old Pages"). The current Manual text for it is at http://manual.audacityteam.org/man/Effect_Menu#fadeout. Certainly you can add a caveat about "two-thirds" there if you think it's needed.
My point on this page is that when you link back to Equal Power Fade to say this is a way of avoiding a mid fade dropout, you aren't saying how to make this equal power fade. Since the text above Equal Power Fade says you can make log curves with Envelope Tool, users may think you cannot make Equal Power curves with Envelope Tool (and its fiddly if you do). So I think you should actually say to use the two "Cross Fade" fades in the current Audacity (or with caveat, the two-thirds rule with linear fade), and put a "ToDo-2" here to update the text to recommend the "Adjustable Fade" and/or "Cross Fade" plug-ins, when/wherever they get released.
Other plug-ins and tools
Fade In and Out
This is a Nyquist plug-in that can apply a linear fade in and fade out to the selected audio.
This tool was written by David R Sky to provide a simple, accessible way for visually impaired and other non-mouse users to apply fade in and out effects. The current Audacity 2.x has a Selection Toolbar providing a screen-reader friendly display of selection start time and duration (* except on Linux) which can be used for similar purpose, but this effect may be found to be quicker and easier to use.
Text Envelope
This is a Nyquist plug-in that can apply multiple changes to the amplitude of the selected audio, fading from one level to another as required.
This tool was written by Steve Daulton to provide an accessible alternative to the "Envelope Tool" for visually impaired and other users that do not use pointing devices.
Creating Fades from the Nyquist Prompt
Nyquist is a programming language that is included in Audacity. It can be used to write plug-ins for Audacity that may provide new effects, generators and analysis plug-ins. Nyquist commands may also be run directly in Audacity by entering code into the Nyquist Prompt Effect. Below are a few short code samples that may be run in the Nyquist Prompt to produce fades to selected audio. More information about Nyquist programming may be found in the Nyquist Audio Programming and Nyquist Plug-ins Reference sections of the Wiki.
; Linear Fade Out: (mult s (pwlv 1 1 0))
; Linear Fade In. ; To avoid a click at the end, the pwlv envelope ; extends beyond the end of the selection. (mult s (pwlv 0 1 1 1.1 1))
; Multi-step fade out. (mult s (pwlv 1 0.4 0.775 0.8 0.447 0.9 0.316 0.95 0.224 1.0 0.0))
; sine curve fade in:
(mult s 0.5
(sum 1
(osc (hz-to-step (/ (get-duration 2)))
1 *table* -90)))
; wiggly fade: (setf wiggle (mult 0.2 (hzosc (/ 6.0 (get-duration 1))))) (mult s (sum 1.0 wiggle))
Removing a click from the start of a sound
If a sound starts suddenly, there will often be a noticeable click at the beginning. This is due to the waveform suddenly jumping from silence to the start of the waveform. This "jump" is often visible by zooming in closely on the start of the sound so you can see the original sample dots:
Applying a short, linear fade in can eliminate the click by smoothing the transition from silence to the start of the sound.
Adding an extract of music to a presentation
Whether Powerpoint, OpenOffice Impress, a slide show for YouTube or any other audio-video presentation, it is often desirable to include audio clips within the presentation. Rather than simply cutting a recording to the required length, applying a fade in and fade out to the audio clip can add a touch of professionalism to the production.
The duration of the fade as well as the shape of the fade are crucial to the overall effect. Typically an audio clip will have a relatively short fade in and a longer fade out, but there are no hard and fast rules. Audacity allows you to experiment with different fade lengths. When preparing audio clips for use in your presentation you can export several versions with differing fade lengths, then when putting together the presentation, try your alternative versions and use whichever you most like.
Fading in music with a logarithmic shape fade is often very effective as you get a hint of the music first, then it rapidly fades to full volume. For fading out music, a sine curve fade often works well.
See also: Mixing
Additional material to be added:
















