Logarithmic Volume Control (dB FS)

Post any examples or modules that you want to share here
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Logarithmic Volume Control (dB FS)

Post 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 ;) )
"There lies the dog buried" (German saying translated literally)
User avatar
MyCo
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany
Contact:

Re: Logarithmic Volume Control (dB FS)

Post 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 ;)
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Logarithmic Volume Control (dB FS)

Post 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 ;)
"There lies the dog buried" (German saying translated literally)
User avatar
MyCo
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany
Contact:

Re: Logarithmic Volume Control (dB FS)

Post 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:
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Logarithmic Volume Control (dB FS)

Post 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.
"There lies the dog buried" (German saying translated literally)
User avatar
MyCo
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany
Contact:

Re: Logarithmic Volume Control (dB FS)

Post 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.
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Logarithmic Volume Control (dB FS)

Post by tulamide »

New version 1.01 is up. See changelog for a description.
"There lies the dog buried" (German saying translated literally)
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: Logarithmic Volume Control (dB FS)

Post by martinvicanek »

Very nice! So how would you integrate it with a preset manager (preset name, value, default)?
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: Logarithmic Volume Control (dB FS)

Post 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..
Attachments
db volume nubeat.fsm
(254.64 KiB) Downloaded 1884 times
User avatar
MyCo
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany
Contact:

Re: Logarithmic Volume Control (dB FS)

Post 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...
Post Reply