cross synthesis

stone21's icon

Hello,

I'd like to crossfade two audio files using a horizontal fader, where at the most left point of the fader you only hear Audio1, and at the right you only hear Audio2. In between I need a crossfade using a technique like cross synthesis.

I followed the max tutorial at https://cycling74.com/docs/max5/tutorials/msp-tut/mspchapter26.html, but I have no idea on how to implement this on a fader such described by me.

Thanks for reading, greets Rowan.

Christopher Dobrian's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Here's an example that does what I think you want. I used ring modulation instead of cross-synthesis for simplicity, and a straight linear crossfade law. Sound 1 goes from pure to modulated as the master fader goes from 0 to 0.5, and sound 2 goes from modulated to pure as the master fader goes from 0.5 to 1, and those two results are in turn crossfaded by the master fader.

stone21's icon

Hi Christopher,

Thanks a lot for your reply, although I cannot get it to work the way you say it works.

From 0 to 0.5 Audio1 gets faded in, and from 0.5 to 1 Audio2 gets faded in as well (together with Audio1)...

Greets

Christopher Dobrian's icon
Max Patch
Copy patch and select New From Clipboard in Max.

You're absolutely right. I had a bug in my mix~ subpatchers. Apologies. Try this corrected version.

stone21's icon

Thanks a lot for your effort, how would I go about implementing an pfft~ in this?

Christopher Dobrian's icon

Just put it in the patcher called "cross-synthesis" in place of the *~ object I put in there as a placeholder.