Forums > MaxMSP

Anyone has a crossfader for crossfading 4 outlets?

June 19, 2009 | 11:26 am

Hi,

Anyone has a crossfader for crossfading between 4 outlets, and with the volume distributed evenly?

Cheers


June 19, 2009 | 3:02 pm
marlon brando wrote on Fri, 19 June 2009 13:26
Hi,

Anyone has a crossfader for crossfading between 4 outlets, and with the volume distributed evenly?

Cheers

haha, that belong to the things on my to do list.

this is extremly complicated, and there is only one way
how to start with it: the whole thing needs two modes,
one which crossfades/crossmixes, and one with crossfading
turned off so that you can move only one slider.

why? because only when you can also move only one slider,
you will be able to set a difference between them.
but when you do, that also will change the sum/average
of all 4 – which is needed to do the calculation for
the crossfade mode…

i have invested about 3 hours during the last years to
finish it but it still does not work. if you dont use java
or make a custom external, you will need tons of "prepend set"
with different outputs and gates. you will see what i mean
once you started!

one more thing: first make one with 2, then with 3, then
with 4. this way you will find out how the logic has to
be built for x.

-110

.


June 19, 2009 | 4:23 pm

This is the first thing that came to mind, it works, but I’m not sure if its really what you want, I just noticed you need the volume evenly distributed.

The 4-pan_2 abstraction that’s included was done by somebody else on the forum (can’t remember who), I picked it up in a thread about using pictslider to control the pan4s abstraction.

You might be able to distribute the volume more evenly with this patch by altering the genPan4 subpatch in pan4s. You may have tried this way before with no luck, but here it is anyway.

Actually I just noticed that there’s a bug in the patch somewhere to do with the pictslider input. When the cursor is at the top left corner it cycles through each output really quickly rather than panning smoothly. I’ll have a look at it.

save as 4-pan_2:

– Pasted Max Patch, click to expand. –

crossfading – I’m pretty sure that pan4s is included with max5:

– Pasted Max Patch, click to expand. –

June 19, 2009 | 4:45 pm

here is a simple solution using the great vbap external.
( http://www.acoustics.hut.fi/software/vbap/MAX_MSP/ )

– Pasted Max Patch, click to expand. –

MathieU


June 19, 2009 | 5:25 pm

Nice patch! Although what bothers me about both these patches is that you can’t crossfade from 2 to 4 without passing through 3 etc…….I would find that really useful.

I’m gonna mess around with vbap and see if I can manage to sort that out. See if I can’t come up with an abstraction that allows crossfades from any input to any other, with an argument for the number of inputs.


June 19, 2009 | 7:49 pm
timlloyd wrote on Fri, 19 June 2009 19:25
Nice patch! Although what bothers me about both these patches is that you can’t crossfade from 2 to 4 without passing through 3 etc…….I would find that really useful.

as for the GUI, you would need to prive two XY sliders, one
which goes like

12
34

and one which is goes like

14
23

and just connect both to the abstraction your going to build.


June 20, 2009 | 12:08 am

I have this one made using an lcd for mixing the four sources.

– Pasted Max Patch, click to expand. –

June 20, 2009 | 7:20 am

The same patch, fewer objects:

– Pasted Max Patch, click to expand. –

_
johan


Viewing 8 posts - 1 through 8 (of 8 total)