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

minimum value of slider

Discussion in 'Scripting Workshop' started by plugaudio, Mar 22, 2011.

Thread Status:
Not open for further replies.
  1. plugaudio

    plugaudio Forum Member

    Messages:
    21
    how can I set minimum value of slider to control cutoff from let's say 300hz

    code below doesnt work for me

    Code:
    
    declare ui_slider $knobLPF (1,1000000)
        set_control_par_str(get_ui_id($knobLPF),$CONTROL_PAR_TEXT,"")
        set_control_par_str(get_ui_id($knobLPF),$CONTROL_PAR_PICTURE,"pv_vintage_drums_knob")
        set_control_par(get_ui_id($knobLPF), $CONTROL_PAR_MOUSE_BEHAVIOUR, -100)
        set_control_par(get_ui_id($knobLPF), $CONTROL_PAR_MIN_VALUE, 10000)
    	move_control_px($knobLPF, 437, 76)
    
    
     
  2. kotori

    kotori NI Product Owner

    Messages:
    1,153
    1 is the minimum and 1000000 is the maximum. Simply increase the 1 until you reach a value corresponding to 300 Hz. You can do this either by experimentation or by setting the cutoff to 300 Hz and use the message and get_engine_par functions to see what engine parameter value this corresponds to.
     
Thread Status:
Not open for further replies.