HIGHER AND LOWER THE VOLUME BY TURNING A KNOB UP

Options
treynterrio
treynterrio Member Posts: 64 Member

Can anyone help me with this: When I turn up a Knob from 0% the Gain should go up like 5-6db and at 50% the volume should go down again.

Is there any way I could do this?


Thanks

Comments

  • corbo-billy
    corbo-billy Member Posts: 88 Helper
    Options

    Post your code, please _

  • noY_T
    noY_T Member Posts: 37 Member
    Options

    I mean the brickwall version is this I guess:

    on init
     declare ui_knob $volume(0,165000*2,1)
     declare $value
    end on
    
    on ui_control($volume)
     if ($volume<165000)
       $value := $volume
     else
       $value := 165000-($volume-165000)
     end if
     set_engine_par($ENGINE_PAR_VOLUME,629961+$value,0,-1,-1)
    end on
    
  • treynterrio
    treynterrio Member Posts: 64 Member
    Options

    thanks a lot @noY_T now I need a code for the same knob but with other values like (0,1000000)

    If you have a idea let me know.

    I need this for a Mix knob one layer goes up with the volume and the other one goes down. both sounds are 12db on 50% that's why I needed this code that you've sent but now I need them go up and go down with the same knob (0,795000) (that's -init to +6db)

Back To Top