1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

Solved Best way to convert modulation intensity to linear?

Discussion in 'Scripting Workshop' started by James Worster, Nov 24, 2021.

  1. James Worster

    James Worster NI Product Owner

    Messages:
    87
    I am using

    Code:
    set_engine_par(ENGINE_PAR_INTMOD_INTENSITY...
    to set the depth of a velocity modulator on the volume of a group.

    However the modulator depth is exponential (e.g. a input value of 50% only puts the modulator up to 25%).

    Does anyone have any way to make this linear instead (e.g. input of 50% would give 50%)?
     
  2. James Worster

    James Worster NI Product Owner

    Messages:
    87
    Found the solution....

    Get your input into a decimal, then square root it, then multiply by 1,000,000 to get back into the correct range.