Lower the Gain when I turn the Saturation up

treynterrio
treynterrio Member Posts: 64 Member

Hi there can anyone help me with this?

When I turn my Saturation Knob up, the Gain of the Saturation should be go down.

What's the script for it 🤕

Comments

  • treynterrio
    treynterrio Member Posts: 64 Member
    edited March 2023

    that's not what I'm looking for. when I turn the Saturation Knob up to like 100%, the Gain Knob of the Saturation should be go down to -10 db from 0.

    so one knob goes up while the other one goes down.

    I wanna use only 1 knob for this

  • corbo-billy
    corbo-billy Member Posts: 83 Helper

    You have to use arithmetic on the callback of each control.

  • treynterrio
    treynterrio Member Posts: 64 Member

    on ui_control($comp)

    set_engine_par($ENGINE_PAR_SHAPE,$comp,-1,2,1)

    set_engine_par($ENGINE_PAR_INSERT_EFFECT_OUTPUT_GAIN,abs($comp-397000-603000-397000-397000),-1,2,1)

    end on

    I've made it like that but it works not perfect.

    Satuartion goes up from 0.00 to 100% and the Gain goes from +21,2 db to 0.0 db.

    @EvilDragon do you've any Idea how I could do this right? I just want only go a couple db lower like from 0 to -10db

  • corbo-billy
    corbo-billy Member Posts: 83 Helper
    edited March 2023

    As I wrote before, this is arithmetic :


    set_engine_par($ENGINE_PAR_INSERT_EFFECT_OUTPUT_GAIN,396500-($comp/8),-1,2,1)

  • treynterrio
    treynterrio Member Posts: 64 Member

    sorry I'm new in this scripting world I don't know what arithmetic is 😄

    this code works much better now I need to figure it out how it could go from 0 db to -10 db

Back To Top