Dry wet knob with gain compensation

Paulo Murphy de Freitas's icon

I'm trying to implement a dry/wet control for a device I'm developing. I have a dry/wet live.dial that runs through two scale objects (they are inverted in relation to each other) that each control dry and wet live.gain objects that get mixed together at the output. This works well but there's a large dip in output volume around the crossover gain points where level drops massively. What would be a good way to solve this? What would be another way to go about implementing a dry/wet control?

Jean-Francois Charles's icon

Hi there, you'll get more useful answers if you attach your code excerpt (select you dry/wet thingy, Edit->Copy Compressed, then paste here).
Here is one version using live.gain~ (tricky part with live.gain~ is that it speaks dBs)
The core of the approach lies in MSP Delay Tutorials 1 and 2 (Help -> Reference -> etc.)

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

Paulo Murphy de Freitas's icon

Hi Jean-Francois, this was exactly what I was looking for, much appreciated. And I'll be sure to check out those tutorials, thanks for the tip.

Using the code you posted, I altered the dial range to 0-100, and the scale accordingly, so I could show a 0 to 100% caption under the dial.

Posting in case this altered version can be useful for anyone. Could be useful as a max for live device starting point template with dry/wet control.

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