reverse envelope follower ?

R_Gol's icon

Hi there,
I'm making a patch with two different sound source. I would like that when I play sound source X the sound source Y will be quiet and will be loud again when the sound source X getting quiet.
I guess my terminology is odd but hope you understand my wish.

Many thanks

double_UG's icon

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

Cody's icon

cool patch! seems to work well enough for me. It sounds like, in part what you're doing is some side chain compression (with just a 1:1 ratio). There's an example in Max called komp.maxpat that takes an external "key" input in the rightmost inlet. What this would do is whenever the komp patch receives signal in the key input, it will engage the compressor on the signal running through it. You should be able to just lower the volume without actually changing the dynamics. Not sure if this is exactly what you're looking for, it just came to mind after looking at your patch.

Roman Thilenius's icon


analyze envelope of A
do [!-~ 1.] to the result

analyze envelope of B
remove envelope of B


apply the control signal from A to B.