Device Details

Device Overview

Name/Version: CPfade 1.1
Author: Efraim  
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.

See the URL link for the formula used for the fading (the sin/cos one).


Changelog:

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.
 

Device Details

Downloads: 3129
Tags effect, utility
Live Version Used: 8.1.1
Max Version Used:
Date Added: Nov 28 2009 12:23:32
Date Last Updated: Apr 24 2010 16:34:28
Average Rating (2) 5
Rate this device: (must be logged in to rate devices login)
Device Type: audio_device
URL (optional): http://www.csounds.com/ezine/autumn1999/beginners/graph1.gif
License (more info): AttributionShareAlike

Device 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.

sorry, but... ?where should I place it to work?
as if I put it in an audio track it will just fade out when going from a to b, as there?s nothing else to fade to.

thanks a lot!

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

Very nice little Max patch. It solves me a lot of mixing problems while attenting to crossfade between 4 audio sources (like vector synthesis in the SCI Prophet VS or the Korg Wavestation). Now, I'm using several instances of this patch to crossfader between 4 tracks or 4 virtual instruments/effects using a simple MIDI joystick.

Thanks !
H?di K.

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.

Login to comment on this device.

[ browse device library ]