Page 1 of 2

Logarithmic Volume Control (dB FS)

PostPosted: Thu May 21, 2015 12:32 pm
by tulamide
It seems there doesn't exist one, so I created one.
http://flowstone.guru/downloads/logarithmic-volume-control-db-fs/
(Don't forget to rate it, good or bad doesn't matter, just do it ;) )

Re: Logarithmic Volume Control (dB FS)

PostPosted: Thu May 21, 2015 6:44 pm
by MyCo
why don't you use the showCursor method to show/hide the cursor instead of the primitive version?

Something doesn't add up... at -6dB I would expect the scaling factor would be 0.5, instead it is 0.4 which is ~ -8dB

BTW: you skipped the difficult part: presets & default ;)

Re: Logarithmic Volume Control (dB FS)

PostPosted: Thu May 21, 2015 7:47 pm
by tulamide
MyCo wrote:why don't you use the showCursor method to show/hide the cursor instead of the primitive version?
Because of the hold state.

MyCo wrote:Something doesn't add up... at -6dB I would expect the scaling factor would be 0.5, instead it is 0.4 which is ~ -8dB
I hate doing careless mistakes. You are right. When inverting 20*log10(n), instead of 10^(n/20) I wrote 20^(n/20). I'm very sorry, will be corrected in an update soon!

MyCo wrote:BTW: you skipped the difficult part: presets & default ;)
What's so difficult in sending a float to the preset manager?
I'd say, programming a control would be the difficult part ;)

Re: Logarithmic Volume Control (dB FS)

PostPosted: Thu May 21, 2015 7:54 pm
by MyCo
tulamide wrote:What's so difficult in sending a float to the preset manager? I'd say, programming a control would be the difficult part ;)


Tried it? The tricky part is, that you have to send values to the preset, and you have to set your control to the values coming from the preset. Done incorrectly, this can lead to an endless loop :mrgreen:

Re: Logarithmic Volume Control (dB FS)

PostPosted: Thu May 21, 2015 7:57 pm
by tulamide
MyCo wrote:Tried it? The tricky part is, that you have to send values to the preset, and you have to set your control to the values coming from the preset. Done incorrectly, this can lead to an endless loop :mrgreen:

Well, I never had such issue, but if the people vote for it, because they can't do it themselves, I'll add a float preset parameter.

Re: Logarithmic Volume Control (dB FS)

PostPosted: Thu May 21, 2015 8:09 pm
by MyCo
tulamide wrote:Well, I never had such issue, but if the people vote for it, because they can't do it themselves, I'll add a float preset parameter.


I haven't had problems with it, but I'm not sure why the stock knobs for example use such a weird construct (toggling "Rec" input). My approach is a lot simpler than that.

Re: Logarithmic Volume Control (dB FS)

PostPosted: Thu May 21, 2015 9:21 pm
by tulamide
New version 1.01 is up. See changelog for a description.

Re: Logarithmic Volume Control (dB FS)

PostPosted: Thu May 21, 2015 10:28 pm
by martinvicanek
Very nice! So how would you integrate it with a preset manager (preset name, value, default)?

Re: Logarithmic Volume Control (dB FS)

PostPosted: Thu May 21, 2015 10:51 pm
by Nubeat7
wow, very cool knob Tom i really like it, about the presetmanager thing, i normally use this module which scales linear 0..1 to log db it has an min db and max db value in the properties, its independent from the control so every knob or slider could be used..

Re: Logarithmic Volume Control (dB FS)

PostPosted: Thu May 21, 2015 11:20 pm
by MyCo
@Nubeat, same as I do. Every single knob / slider, whatever in my projects goes from 0 to 1. Scaling is applied outside of the control module. That way I don't have to check the ranges on every control, when I want to change something later...