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
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Output weighted distribution values (incl. calibrator)
5 posts
• Page 1 of 1
Output weighted distribution values (incl. calibrator)
I offered a tool to alter a linear knob range of 0-1 to many variants of value distribution here.
I thought a more simplified version could help those, who are not familiar with Ruby or programming. In this schematic you find the converter and a calibrator, which outputs the value distribution as a curve on an x/y grid. Play around with the calibration value (0-1), until the curve matches your needs. Then use that calibration value in the converter.
The converter expects a left value, a right value, a t-value and a calibration value:
Left and right doesn't mean min and max. It refers to a line that on the x-ordinate has a left end and a right end. Both can take on any values (imagine y-ordinate) you like. a left value of 234 and a right value of -4 is totally fine. So, if you use this for a delay value between 50 and 200 ms, just enter left value 50 and right value 200. Likewise, if you have a delay value between 200 and 50 ms, enter left value 200 and right value 50.
The calibration value has to be in the range (and order) of 0 to 1. 0.5 means linear distribution, everything else is some kind of curved or weighted distribution.
The t-value has to be in the range of 0 and 1, but it doesn't matter if you feed it 1 to 0 or 0 to 1. It's best use a knob or slider for it. That way you control the output value. In an example delay range from 50 to 150 ms and a calibration value of 0.5, a t-value of 0 outputs 50, 0.5 outputs 100 and 1 outputs 150 ms.
It's easier than you think from this description. I just wanted to describe each aspect.
I thought a more simplified version could help those, who are not familiar with Ruby or programming. In this schematic you find the converter and a calibrator, which outputs the value distribution as a curve on an x/y grid. Play around with the calibration value (0-1), until the curve matches your needs. Then use that calibration value in the converter.
The converter expects a left value, a right value, a t-value and a calibration value:
Left and right doesn't mean min and max. It refers to a line that on the x-ordinate has a left end and a right end. Both can take on any values (imagine y-ordinate) you like. a left value of 234 and a right value of -4 is totally fine. So, if you use this for a delay value between 50 and 200 ms, just enter left value 50 and right value 200. Likewise, if you have a delay value between 200 and 50 ms, enter left value 200 and right value 50.
The calibration value has to be in the range (and order) of 0 to 1. 0.5 means linear distribution, everything else is some kind of curved or weighted distribution.
The t-value has to be in the range of 0 and 1, but it doesn't matter if you feed it 1 to 0 or 0 to 1. It's best use a knob or slider for it. That way you control the output value. In an example delay range from 50 to 150 ms and a calibration value of 0.5, a t-value of 0 outputs 50, 0.5 outputs 100 and 1 outputs 150 ms.
It's easier than you think from this description. I just wanted to describe each aspect.
- Attachments
-
- quadratic_interpolation_r3.fsm
- (33.98 KiB) Downloaded 955 times
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Output weighted distribution values (incl. calibrator)
UBER DOPE TULAMIDE
-
guyman - Posts: 207
- Joined: Fri Mar 02, 2018 8:27 pm
Re: Output weighted distribution values (incl. calibrator)
Excellent!
The version I originally put into my toolbox had a Ruby input for the curve shape and a Properties parameter for it. But this goes further and I love the graph too.
Cheers
Spogg
The version I originally put into my toolbox had a Ruby input for the curve shape and a Properties parameter for it. But this goes further and I love the graph too.
Cheers
Spogg
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Output weighted distribution values (incl. calibrator)
Thanks!
I just hope that nobody uses the tooltip, that would be embarrassing. It still has the dummy text I placed there at first, because I wasn't sure how to describe it then (and then forgot about it)
I just hope that nobody uses the tooltip, that would be embarrassing. It still has the dummy text I placed there at first, because I wasn't sure how to describe it then (and then forgot about it)
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Output weighted distribution values (incl. calibrator)
Whoo, well; that does seem pretty uber. I'll probably use that, thanks Tulamide. And I got the chance to use the word uber too .
-
wlangfor@uoguelph.ca - Posts: 912
- Joined: Tue Apr 03, 2018 5:50 pm
- Location: North Bay, Ontario, Canada
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 51 guests