Frequency Crossfader / general Xfader question

sdh2125's icon

Hi guys,
I'm trying to make a patch that would allow me to crossfade different frequency bands between two or more sources of audio. In hardware, this has been done in the Pioneer DJM-2000 (http://www.pioneer.eu/images/news/DJM2000_top.jpg), with an excessive 7 bands, and the Behringer DDM-4000 (http://www.behringer.com/assets/DDM4000_P0167_TopPers_XXL.png).

However, I'm having problems even figuring out basic crossfading, and I'm surprised there isn't just a simple object for it like there is in Jitter.

How can I achieve this? All help is very much appreciated!
Thank you,
Simon

sdh2125's icon

Hi Baz,
thank you, that's a fantastic video.
eventually, what I'm trying to get out of it is 3 sliders that each fade between one frequency band on two or more audio sources. maybe this is just a question of attaching sliders to the axes of that graph or so, but it's probably not that simple.

since I'm still new to this, could you help me figure that out? and what is the advantage of your method over using filters (which I'm also not sure how to do)?

thanks again!
Simon

AudioLemon's icon

simple abstraction for crossfading are [M4L.bal1~] for mono xfade and [M4L.bal2~] for stereo.

An easy (non fft) way to do what you want would be to use the [fffb~] object and then the xfades above. I'm gonna try it out later.

Baz another cool tutorial - very good of you to answer with a video. I am struggling with the fft stuff but looking at your video's I am much more comfortable with the language and objects used and the kind of thing you do - so thanks :)

sdh2125's icon

hi Grizzle,
that sounds exactly like what' I'm trying to do - could you elaborate on that, or maybe show me a simplified patch?
thanks so much!

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

I gave it a go... it's not so bad if the Q is set to 0 - sounds ok to me. unfortunately it is of no real use to me until M4L supports multichannel - does anyone think this will ever happen - could it happen?

Thanks Baz another vid... going to watch it now :)

sdh2125's icon

Hi Grizzle,
I actually ended up coming up with pretty much your exact patch, see attached screenshot. however, I still have to tweak the filter bands a bit, but your version with just the simple division into three equal ones sounds surprisingly good. with the Q at 0, is the whole frequency range being covered? I definitely don't want any sound coloration.

Baz, great video as usual. could you maybe post the code for that?

thanks so much, guys!

sdh2125's icon

Edit: see attached.

2829.Screenshot20111103at15.40.12.png
png