Vst Wrapper translate dB to Live.Dial

Maschu's icon

Hi there,

I'm trying to create a wrapper for this vst plugin. I got Live.Dial to Controll one of the values, but it translates gain values from 0 to 10 into 0. to 1.

Is there a way to tranlate this correctly?!

Cheers,

Ma

Roman Thilenius's icon

you can only find out the range and curve used inside the VST by trial and error. most likely a [dbtoa] will be involved.

Noise Wrangler's icon

The command values are always from 0. to 1., and you can use either the number or the name of the parameter from the name column.
But you can get the value interpreted by the VST back from the second outlet if you change the valuemode attribute to String or Both after the signal outlets (depending whether the vst is mono or stereo). And then use that as your display instead of the values of the dial.

Maschu's icon

This is great! I still don't understand, how I can translate the raw values into the true values again. I managed to use a gain slider to represent the in and ouputs, but -6 is 0db for example.

Maschu's icon

GOT it. I needed to use the "raw value" input... THANKS

Maschu's icon

Now I only need to find out how to access some hidden values that don't show up in the list like an oversampling function...

Noise Wrangler's icon

AFAIK if it doesn't show up in the list, it's a parameter that can't be automatized, and therefore it's not accessible outside of the original graphical interface.

Roman Thilenius's icon

usign raw values of course does no longer have the benefit of all parameter ranges been normalized (and therefore all of an equal kind.)

Noise Wrangler's icon

I'm not sure I understand what you mean Roman. The raw value is just the [0. 1.] range coming out of the right outlet of the live.dial.

When I want to have an external control of a VST, I usually use any sort of control outputting a [0. 1.] range and then display below the string output by the VST. This way, I can change which parameter I control with one single dial, and still get a visual feedback of the actual value that's controlled.

Roman Thilenius's icon

i was under the under the impression that you wanted your custom knob to behave like the plug-in GUI, where you can set hertz and db in a useful, non-linear way.

Noise Wrangler's icon

I was trying to explain that above, but a picture...

For the anecdote, I spent hours trying to approximate the non-linear curves of the Soundtoys plugins before discovering this approach. I hope it's helpful to others.

Maschu's icon

Some smart stuff. I almost finished my wrapper for the free Pultec by Kiive Audio thanks to your help.

Only bug: When I load the wrapper into an Ableton session it explodes my audio for 3 seconds before working.

Also: Do you think it's possible to create a graph that shows the EQ curves? I suppose not?!

Warmy Wrapper.amxd
amxd

Maschu's icon

I'm trying to map a Frequency Pot of a plugin that uses 0. to 1. to a live.dial using "enum".

However after typing in all the exact values (0. 0.33. 0.66. 0.86. 1.) max converts it back into even steps. very strange. How can I make the 0.66 appear in the num thingy??


Maschu's icon

flonum doesnt work either. Spills out 2.25

schlam's icon

The list enum of a live.dial is just for display purpose. You have after to use [sel x y z] to trigger the correct value or use coll or whatever solution that store information to trigger the good values

Maschu's icon

can you show me how, don't understand the helpers...

double_UG's icon
Max Patch
Copy patch and select New From Clipboard in Max.

-------------------------------------------------------------

Maschu's icon

amazing, thanks!