Stuck on the simplest thing!

Brian H.'s icon

All I want to do is use [live.dial] as a gain control for a signal. I want it in decibals– without using a series of [atodb]– in the range of -12 to +12. Infuriatingly, I can't seem to get this to happen. Is there no built in MSP object to do this ? The jasch [db*~] isn't doing what I'd expect.

Thanks,
Brian

Floating Point's icon

Like this?

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

Pedro Santos's icon

If you prefer the appearance of live.dial instead of live.gain~, you could always use live.dial as a controller for a hidden live.gain~...

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

Brian H.'s icon

Like this– just dB. One assumes that there is a dB output on [live.dial] that can actually be used somehow...

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

Brian H.'s icon

I must not be understanding what Jasch's [*db~] is supposed to be doing. I assumed it meant simply scale by a decibel value, but I'm not getting what I'd expect. Any hints?

Brian H.'s icon

[*db~] is only an attenuator? Is there a reason why? I don't understand the difference between sending it a float ("multiplication face") or sending it an int < 0.

Floating Point's icon

float and int in right inlet are treated differently as shown in the help file:

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