Limiter Values

Post Reply
UrbanCyborg
Posts: 588
Joined: Mon Nov 15, 2021 9:23 pm

Limiter Values

Post by UrbanCyborg »

What are y'all using for parameters for the Limiter function VMD supplies? Particularly dB values for soft and hard limiting. I've tried putting in common values used in studio practice, but I'm not getting the results I expect. Any help appreciated.

Reid
Cyberwerks Heavy Industries -- viewforum.php?f=76
User avatar
utdgrant
Posts: 535
Joined: Wed Apr 07, 2021 8:58 am
Location: Scotland
Contact:

Re: Limiter Values

Post by utdgrant »

Are you talking about the Limiter class?

SetThresholdDecibels (double dB) has the range -infinity to 0.0.
SetThresholdPercent (double percent) has the range 0.0 to 100.0.

Voltage-Developer-Kit-2.5.5/Documentation/JavaDocs/voltage/processors/Limiter.html

Edit to add: There's no SetRatio method, so I'm guessing you get hard limiting in all cases.
______________________
Dome Music Technologies
UrbanCyborg
Posts: 588
Joined: Mon Nov 15, 2021 9:23 pm

Re: Limiter Values

Post by UrbanCyborg »

Well, I suppose that's part of the problem. There's a way to query the gain, but not one to set it, so I was thinking it must be inherent in the values you can set. But I'm not sure it really is. Writing a test case now. Thanks.

Reid
Cyberwerks Heavy Industries -- viewforum.php?f=76
UrbanCyborg
Posts: 588
Joined: Mon Nov 15, 2021 9:23 pm

Re: Limiter Values

Post by UrbanCyborg »

Okay, my tests show that the only thing that affects the gain is the Threshold setting. Lower the threshold, and the gain goes up. At -0 dB, it's 1.0. What I've noted regarding the attack and delay times is that they definitely affect phase, so there's some kind of frequency-dependent processing going on, but I'm unable to detect any obvious change in the waveform over fairly large changes in timing. So, I would say that you're right that the function is probably doing a fixed limit, although it doesn't appear to be that hard a one, since the waveform basically just rescales to stay within +/- 5 V. Now, most compressors I'm aware of do their tricks by changing gain on the fly; this one doesn't seem to be doing that. Bug, or intended behavior? It's not well-documented, and in fact, the limiter module in the SDK sample code doesn't use it, but relies on a separate file that just hard-clips.

Reid
Cyberwerks Heavy Industries -- viewforum.php?f=76
ColinP
Posts: 940
Joined: Mon Aug 03, 2020 7:46 pm

Re: Limiter Values

Post by ColinP »

Hi Reid,

You have more than sufficient knowledge to code your own limiter rather than waste time trying to get the stock VM DSP library stuff to do anything useful.

Although it sounds like you have come to this conclusion already so don't really need me to point it out. :D
UrbanCyborg
Posts: 588
Joined: Mon Nov 15, 2021 9:23 pm

Re: Limiter Values

Post by UrbanCyborg »

Yeah, I just didn't want to if I didn't have to, since I'm not writing a compressor module; I just want to have the capability as a minor feature in a different module. Compressor code can get very messy if you get serious about it; the variable gain amp at the heart of it is a very minor part of the beast. Predictive code of some sort is quite a bit messier. I guess if I have to write one, I'll also release it as a module. Odd that there aren't very many compressor modules available in VM.

Reid
Cyberwerks Heavy Industries -- viewforum.php?f=76
Post Reply

Return to “Module Designer”