Cos equal power dj style fader. what am i doing wrong

hello

i am trying to figure out how to use cos to create a dj style fader between 2 audio sourses. right now i cant get it to go to zero completely resulting in one signal being fully heared and the other a bit where it should be zero. (i only use a Oscilloscope to monitor no real audio here)

if i did it right there should be zero detectable changes on the Oscilloscope but right now there is a bump and that remaining 0.540

the problem i have is that if i use a map afterwards to get rid of the remaining 0.540 i also loose cos scaling again

i am probably missing something very obvious anyone?

Coz Equal Power Fader Experiment.mnprtz (72.4 KB)

test

I used an “Equal Power Crossfade” method in this case for you.

Using :

θ=t⋅2π​

Angle = Value ( 2 * pi) (normaly pi is 3.145926… i thought .. but i shortend it to 3.141

And then:

Gain (a) = cos(θ)

Gain (b) = sin(θ)

Just applied something what i was reading about. seems to be working at my end. no bump but rather a minimum dip at equal visual 50% positions.

But anyhow this seems the technique that can be used. you could also do:

A = sqrt(1 - t)
B = sqrt(t)

I tested that but found the first solution a better one.

CozEqual_Danny.mnprtz (60.7 KB)

very interesting approach however that tiny dip is something i do not have when i use for example

and

in fl studio

i think there must be an even better way

That seems also very logical, you are now refering to FL studio which can use perhaps a higher resolution instead of Mnodes and a float?. in my opinion a very logical difference between them.

It’s like, i am using pi as 3.141 instead of 3.1415927

For sure there will be a difference..

It’s like having a curved bridge, can be easy to walk on. the longer you make it you dont even realize its curved.

yeah true true and true

perhaps that small difference comes from an pi with just 3 decimals see this leaves me thinking something is missing or could be done different (not that i know how)

if mario ever adds exponential and logaritmic etc to fader behavior cos should also be added easy solution :slight_smile: edit should probably be an optiion in curve then

I think we need a crossfader node. Making things simple and direct for these kinds of cases can save a lot of time.

you could consider adding an up and a down version to curve that would also add weird crossfade possibilities to connecting a curve to an lfo haha