8 channel Multiplexer with crossfade

JAMES's icon

Hi All! I searched around the forum for scanner and crossfadable switches and didnt find anything at my skill level! Expressions are outside of my math level.

I am looking to have an 8 audio input with an additional input for 1-8 signal scanning/crossfading. I managed to get channel 1 and channel 2 logic but i can't seem to figure out how to switch the logic from the rise to the fall. I thought I could have the crossfade rise to 1 and then switch to negative polarity so that I could program the fall of the crossfade.

I would love to be able to make this in gen~ so I could utilize this at audio rate but that might be a little over my head while I am still learning.

Perhaps there is an easier way to do this? Thank you for any guidance

Max Patch
Copy patch and select New From Clipboard in Max.

JAMES's icon

I tried to use [bucket] which seems like it could have a solution, however I have not yet found a way to "reverse" the numbers to get the 'crossfade out' effect

JAMES's icon

I have also looked into quadraphonic panning, which still needs some more investigating. However, my intention is to create a 2D slider that crossfades between 8 signal inputs

JAMES's icon

Made some progress Channel 1-8 numerically progress exactly how I wanted. i implemented [line] but i still here a bit of click activity in the audio. Could anyone lend some guidance on this? :)

Max Patch
Copy patch and select New From Clipboard in Max.

JAMES's icon

Found this incredibly helpful video on smoothing data:
https://www.youtube.com/watch?v=BP-yw7068-8

Didnt solve the problem however. I actually ended up using [curve~] which seems to be the best result so far. Although it is slow (I can't move the slider too fast)

Max Patch
Copy patch and select New From Clipboard in Max.

Source Audio's icon

8 floats cold be sent to matrix~ 8 1 1 and remove all curve~ and * ~ objects.

Max Patch
Copy patch and select New From Clipboard in Max.


Next thing would be to simpler split that slider into 8 control values...
-------
If all you need is crossfade between 2 Cycles with different freq. at a time,
which actually is all that happens in that patch,
than only 2 cycle~ objects and 2 audio channels could do the job, send new freq to one
that starts to fade in.

JAMES's icon

Wow @SOURCEAUDIO this sounds so smooth. I'm going to study what you did here. Many thanks! This is extremely helpful! My intention is to make a patcher out of this to be able to accept any inputs, the [cycle~] are just placeholders.

However, only channel 1 audio is coming through. Do you have any idea why none of the other channels are running through the [matrix~]? Max console says "Invalid Outlet number" but I don't see the error in the patch. I thought they would sum to output one but seems I need to make 8 outputs and then sum into some kind of mixer?

Source Audio's icon

sorry, had missing stuff inside

Max Patch
Copy patch and select New From Clipboard in Max.

JAMES's icon

Incredible. I cannot thank you enough! I really appreciate you taking the time to help me.

My next project could be to make this in gen~ so that we could do this at audio rate! Thats a bit above my head but for the future :)

Roman Thilenius's icon


there is tons of this stuff available via forum search.

and i feel like pointing out that you dont need to use gen~ to use audio rate. :)