omx.comp Details: Threshold, Sidechain, Gain Reduction Metering

Christian Simon's icon

Hi everyone
I´m Max beginner and try to realize a ducking via sidechain compression with omx.comp. Actually, I only managed to set up a regular compresison and there are three questions I couldn´t solve:
1. Threshold
I created the agc.Threshold object, but it does not seem to work. Only the ratio effects gain reduction.
2.
In the object description, sidechaining is named, but in the object help I only find sidechain filtering and the "signal"-message for selecting the signal to be compressed. This actually looks like there could be a signal triggering this compression. Is it possible to route an insert signal to the compressor, triggering the compression for another signal?
3.
I did not manage to build a gain reduction metering, although the metering description seem logical and there is a metering outlet. Any hints?

The simple patch is attached.

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

Thanks a lot, I searched and watched a lot of tutorials, but non could solve this.
Best, Christian

Gregory Taylor's icon

Christian, the most polite way to post your patches (and the shortest) is to select the bits you want to copy and then choose Copy Compressed from the Max Edit menu. You can then paste your patch directly into the post from your clipboard.

I've done that for you. Going forward, it makes copying the patch easier for others, and saves reading space for the thread.

Roman Thilenius's icon

first person to use omx, congrats

Christian Simon's icon

Thanks a lot for the help - this was quick... Now my next question would be, if there is any compressor with "real" sidechaining in max, where an external trigger controls the compression of another signal. Any suggestions?

Source Audio's icon

If You understand how it works in real analog world,
than it should be easy to recreate that in software.
Measure the signal which should control the compression
and apply the result to volume of the signal to be compressed.
Sidechain means that signal to be compressed has no control
on compression rate, threshold, speed or whatever else.

You can experiment using float output of levelmeter of one audio signal
and scale it to compress or gate or whatever some other signal.
There is also a simple compressor example called squirrel
in legacy examples.
There You could detach sidechain input from audio input...

Christian Simon's icon

Thanks! I give it a try and comment later.