Device Details


Overview

Name | Version: CPfade 1.2
Author: Efraim
Device Type: Audio Effect
Description: CPfade is a constant power fader.
This will let you seamlessly crossfade between any two sources using one control, whether it be inside an effect rack or across multiple channels.

Linear crossfading causes the loudness to dip in the middle of the fade, "constant power" fading retains constant power and thus perceived loudness.

The A/B switch inverts the fader control.
For crossfades, add a CPfade set to A to one source and a CPfade set to B to the other. Map the fader dial of both instances to one control (physical knob or macro control) to begin crossfading.
To crossfade between more than two sources: add a CPfade instance for each fading movement that needs to happen. So if a sound should fade in and out, it needs two CPfade instances. For example, if there are three sounds 1 2 and 3, there will be one instance on sound 1 (set to fade out between 0 and 63), two instances on sound 2 (one set to fade in between 0 and 63, the other set to fade out between 64 and 127) and one instance on sound 3 (set to fade in between 64 and 127).

Changelog:
1.2:
- Added options to define the range of the dial and to choose where in that range the fading occurs.
1.1:
- Improved fading interpolation to reduce/eliminate glitches with fast fades.

1.0:
- Polished the graphics,
- Added immediate update of fader value after A/B switch.

0.9:
- Initial release.

Details

Live Version Used: 10.1.43
Max Version Used: 8.6.3
Date Added: Nov 28 2009 12:23:32
Date Last Updated: Jul 02 2024 16:01:31
Downloads: 3859
License: AttributionShareAlike
Average Rating (4)

Log in to rate this device

5

Files

Device File: CPfade.amxd
 


Comments

I havent yet gotten into M4L but effects like this, if it works ensure that I will get it.

Regards
It works :)
Maybe at some point I will make a youtube video demonstrating this little tool.
this is certainly a great little device because the chain selector fader in an effect group just does linear fades...

so in doing bass note sine tests, i noticed that the overall volume gets louder in the center... which parameter can be tweaked to adjust the curves of the fade?

also what would you recommend to getting rid of the glitches when fading quickly... maybe a line object?

thanks again for a useful little thang...
@ gamuso:
You need two tracks and put a CPfade on each of them, then on one track set it to A and on the other on B.
Assign one knob to both of the CPfade instances and use that to crossfade between the tracks.
Of course if you only have one track it will just fade out.
You could also do it with an audio rack, where you have two chains, each with a CPfade object.

@ offthesky:

I have tested it too with bass notes, and I found out that with some notes the volume drops in the middle, while with others it rises. So it must be a phase problem, causing a slight null or a peak in the middle.
I don't know how this can be solved yet, because I noticed that Max isn't 100% accurate with timing when running inside Live.

Maybe I'll add customisable fader curves in a future version. That is a little bit more complicated as it means there needs to be a kind of interpolation between different formulas. Right now it's based on a sine-function.

The glitches were caused by the line-object not working at audio-rate. I've made an update that fixes this (basically I replaced the [line 0.] with [line~ 0.]).
@ gamuso:
You need two tracks and put a CPfade on each of them, then on one track set it to A and on the other on B.
Assign one knob to both of the CPfade instances and use that to crossfade between the tracks.
Of course if you only have one track it will just fade out.
You could also do it with an audio rack, where you have two chains, each with a CPfade object.

@ offthesky:

I have tested it too with bass notes, and I found out that with some notes the volume drops in the middle, while with others it rises. So it must be a phase problem, causing a slight null or a peak in the middle.
I don't know how this can be solved yet, because I noticed that Max isn't 100% accurate with timing when running inside Live.

Maybe I'll add customisable fader curves in a future version. That is a little bit more complicated as it means there needs to be a kind of interpolation between different formulas. Right now it's based on a sine-function.

The glitches were caused by the line-object not working at audio-rate. I've made an update that fixes this (basically I replaced the [line 0.] with [line~ 0.]).
sorry but i don't understand how this works and what it's supposed to do
sorry but i don't understand how this works and what it's supposed to do
Brilliant! I crossfade between two layers all the time in racks, with this thing it now properly fades without the nasty volume dip! Thank you.
perfect
perfect anyway to make it so both devices stay at max untill it passes the halfway point?
lol no worrys had somthing midi mapped :P :P
Exactly what I was looking for, thanks!
Thanks for making this, man! It's a simple little thing that makes using the Push that much better. It's great how you can just look up a solution and someone, such as yourself, has provided it, free of charge. It works great.
Hey, that download link seems to be broken. Just FYI.
I want
Actually, disregard my previous statement. The link in the "URL (optional)" field remains broken, but the "download device" button below that appears to work.

(I haven't confirmed that the file does. Latest version is 13 years old. But you should be able to edit and troubleshoot, if needed)
@Efraim Thank you for CPfade and keeping it updated over the years.

Is there a way to use multiple pairs of it in a project? For example, "Pair 1: A/B", "Pair 2: A/B", etc. Each pair is independent and does not affect the others.

Login to comment on this device.

Browse the full library