Rawbots Wiki
Advertisement
Sample mapper

Sample Mapper

Used to scale, offsets and/or invert decimal values.

They are mostly used to scale input sampler outputs

Video

Input/Output Description Data Type
>sample The input value decimal
>sample_min The lower and upper borders to specify the sample range decimal
>sample_max decimal
>mapped_min The lower and upper borders to specify the mapped range decimal
>mapped_max decimal
>invert Flips <mapped with <inverted boolean
<mapped The scaled output value decimal
<inverted The inverted scaled output value decimal

Formulas[]

Lerp

Sample mapper applies linear interpolation between two points: (sample_min; mapped_min) and (sample_max; mapped_max).

Advertisement