How to script ENGINE_PAR_SENDLEVEL

Jazzman
Jazzman Member Posts: 8 Member

Hello

I'm trying to code a slider to manipulate the gain of an insert FX in bus1 insert FX

but i don't find a correct code for on ui_control


on init
declare ui_slider $Send01(0,1000000)

	make_persistent($Send01)

	declare $k_Send01

	$k_Send01 := get_ui_id($Send01)

	set_control_par_str($k_Send01,$CONTROL_PAR_PICTURE,"Send_Fader")

	set_control_par($k_Send01,$CONTROL_PAR_POS_X,48)

	set_control_par($k_Send01,$CONTROL_PAR_POS_Y,70)

	set_control_par($k_Send01,$CONTROL_PAR_MOUSE_BEHAVIOUR,$mouse_resp)
end on


on ui_control($Send01)

	set_engine_par($ENGINE_PAR_?,$Send01,?,?,?) 

end on




thank you in advance for your help 🙏

Best Answer

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

    You can try:


    on ui_control($Send01)
        set_engine_par($ENGINE_PAR_SENDLEVEL_0,$Send01,-1,6,$NI_BUS_OFFSET + 0)
    end on
    

Answers

  • Jazzman
    Jazzman Member Posts: 8 Member

    i try this but not working

    on ui_control($Send01)
         set_engine_par($ENGINE_PAR_SENDLEVEL_0,$Send01,0,6,$NI_BUS_OFFSET +0)
    end on
    
    


  • Jazzman
    Jazzman Member Posts: 8 Member

    I believe this is the correct code but it does not work plz help me

    on ui_control($Send01)
    	set_engine_par($ENGINE_PAR_SENDLEVEL_0,$Send01,0,6,0)
    end on
    
    
    
  • Jazzman
    Jazzman Member Posts: 8 Member

    i try this but not working

    on ui_control($Send01)
    	set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL,$Send01,$NI_BUS_OFFSET + 0,6,0)
    end on
    
    
  • corbo-billy
    corbo-billy Member Posts: 83 Helper
    Answer ✓

    You can try:


    on ui_control($Send01)
        set_engine_par($ENGINE_PAR_SENDLEVEL_0,$Send01,-1,6,$NI_BUS_OFFSET + 0)
    end on
    
  • Jazzman
    Jazzman Member Posts: 8 Member

    Yeeees it works

    thank you Corbo-Billy, you are the best 👍️

Back To Top