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

I am a newbie in this!

Discussion in 'Scripting Workshop' started by gastonlp, Mar 26, 2015.

  1. gastonlp

    gastonlp New Member

    Messages:
    7
    How do I add an equalizer that appears in Insert FX controls me on my Custom Interface. I mean?
    Sorry for my English but I speak Spanish. Thank You!
     
  2. Alex!

    Alex! NI Product Owner

    Messages:
    29
    Hi! check this!
     
  3. gastonlp

    gastonlp New Member

    Messages:
    7
    Interesting! You may copy or download the script from any website?
     
  4. gastonlp

    gastonlp New Member

    Messages:
    7
    It worked perfect, here I leave the code in case anyone needs it. Now the second challenge is to also add the reverb equalizer.
    on init
    make_perfview
    set_script_title("Mi Ecualizador")
    message ("")

    declare ui_knob $KnobEqGain1(0,1000000,1)
    move_control ($KnobEqGain1,1,2)
    set_text($KnobEqGain1, "Low")
    set_knob_unit($KnobEqGain1,$KNOB_UNIT_DB)
    set_knob_defval($KnobEqGain1,500000)
    set_knob_label($KnobEqGain1,get_engine_par_disp($ENGINE_PAR_GAIN1,0,0,-1))
    make_persistent($KnobEqGain1)

    declare ui_knob $KnobEqGain2(0,1000000,1)
    move_control ($KnobEqGain2,2,2) {ubicacion en mi interface}
    set_text($KnobEqGain2, "Mid")
    set_knob_unit($KnobEqGain2,$KNOB_UNIT_DB)
    set_knob_defval($KnobEqGain2,500000)
    set_knob_label($KnobEqGain2,get_engine_par_disp($ENGINE_PAR_GAIN2,0,0,-1))
    make_persistent($KnobEqGain2)

    declare ui_knob $KnobEqGain3(0,1000000,1)
    move_control ($KnobEqGain3,3,2)
    set_text($KnobEqGain3, "Hi")
    set_knob_unit($KnobEqGain3,$KNOB_UNIT_DB)
    set_knob_defval($KnobEqGain3,500000)
    set_knob_label($KnobEqGain3,get_engine_par_disp($ENGINE_PAR_GAIN3,0,0,-1))
    make_persistent($KnobEqGain3)

    end on


    on ui_control($KnobEqGain1)
    set_engine_par($ENGINE_PAR_GAIN1,$KnobEqGain1,0,0,-1)
    set_knob_label($KnobEqGain1,get_engine_par_disp($ENGINE_PAR_GAIN1,0,0,-1))
    end on

    on ui_control($KnobEqGain2)
    set_engine_par($ENGINE_PAR_GAIN2,$KnobEqGain2,0,0,-1)
    set_knob_label($KnobEqGain2,get_engine_par_disp($ENGINE_PAR_GAIN2,0,0,-1))
    end on

    on ui_control($KnobEqGain3)
    set_engine_par($ENGINE_PAR_GAIN3,$KnobEqGain3,0,0,-1)
    set_knob_label($KnobEqGain3,get_engine_par_disp($ENGINE_PAR_GAIN3,0,0,-1))

    end on
     
  5. Alex!

    Alex! NI Product Owner

    Messages:
    29