Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Logarithmic Volume Control (dB FS)

Post any examples or modules that you want to share here

Logarithmic Volume Control (dB FS)

Postby tulamide » Thu May 21, 2015 12:32 pm

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

Re: Logarithmic Volume Control (dB FS)

Postby MyCo » Thu May 21, 2015 6:44 pm

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 ;)
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany

Re: Logarithmic Volume Control (dB FS)

Postby tulamide » Thu May 21, 2015 7:47 pm

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

Re: Logarithmic Volume Control (dB FS)

Postby MyCo » Thu May 21, 2015 7:54 pm

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:
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany

Re: Logarithmic Volume Control (dB FS)

Postby tulamide » Thu May 21, 2015 7:57 pm

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

Re: Logarithmic Volume Control (dB FS)

Postby MyCo » Thu May 21, 2015 8:09 pm

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.
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany

Re: Logarithmic Volume Control (dB FS)

Postby tulamide » Thu May 21, 2015 9:21 pm

New version 1.01 is up. See changelog for a description.
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2687
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Logarithmic Volume Control (dB FS)

Postby martinvicanek » Thu May 21, 2015 10:28 pm

Very nice! So how would you integrate it with a preset manager (preset name, value, default)?
User avatar
martinvicanek
 
Posts: 1318
Joined: Sat Jun 22, 2013 8:28 pm

Re: Logarithmic Volume Control (dB FS)

Postby Nubeat7 » Thu May 21, 2015 10:51 pm

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 1536 times
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Logarithmic Volume Control (dB FS)

Postby MyCo » Thu May 21, 2015 11:20 pm

@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...
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany

Next

Return to User Examples

Who is online

Users browsing this forum: No registered users and 18 guests

cron