Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Remap paramerters with scale values

Still a little green? Ask your beginner's questions here

Remap paramerters with scale values

Postby Selmabrd » Wed May 16, 2018 4:37 am

Hello,
I have a question,

Il would like to use multipliers to scale up or down custom parameters.
In my current patch, I am multiplying the current value of the custom parameter with a multiplier range from 0 to 2.

Works fine, but I want the output of the multiplication (null2) to always stay within the range of the custom parameter (scale from 1 to 4). So if my current value is already 4, multiplying by 2 would have no effect, and the multiplication range from 0 to 2 would output values from 1 to 4.
Basically need to take in account the current value to define the multiplication range i think..

Attached is the .tox
Thanks
Attachments
multiplication-help.tox
(1.01 KiB) Downloaded 19 times
Selmabrd
 
Posts: 9
Joined: Fri Mar 16, 2018 12:45 pm

Re: Remap paramerters with scale values

Postby raganmd » Wed May 16, 2018 12:34 pm

After your math CHOP use a limit CHOP set to clamp. This will let you constrain your values inside of a range. If you want to use the min / max vals set in your custom parameter you can use an expression like one of the following in your limit CHOP:

Code: Select all
op('mutlipliers1').par.Axisx.normMin
# or
op('mutlipliers1').par.Axisx.min
raganmd
 
Posts: 1297
Joined: Thu Mar 28, 2013 5:21 am
Location: San Francisco, CA

Re: Remap paramerters with scale values

Postby Selmabrd » Wed May 16, 2018 4:39 pm

Thanks Matthew that was the expression I was looking for ! :)
Selmabrd
 
Posts: 9
Joined: Fri Mar 16, 2018 12:45 pm


Return to Beginners

Who is online

Users browsing this forum: No registered users and 10 guests