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

Solved Trying to control filter cutoff

Discussion in 'Scripting Workshop' started by Carlos Butler, Sep 20, 2018.

  1. Carlos Butler

    Carlos Butler New Member

    Messages:
    8
    Hi, I'm trying to control filter cutoff with
    Code:
    set_engine_par($ENGINE_PAR_CUTOFF,$volume,-1,-1,-1)
    on an instrument and
    Code:
    set_engine_par($ENGINE_PAR_CUTOFF,$volume,0,-1,-1)
    on a group and neither of them work. I've used the same code with VOLUME and it works. Do I have to do something different for filter cutoff? Thanks in advance.
     
  2. Carlos Butler

    Carlos Butler New Member

    Messages:
    8
    I had to set the slot parameter to 0, sorry.
     
  3. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    If by "on instrument" you mean insert FX, and with filter in slot 1 of insert FX, you need to use -1, 0, 1. If "on a group", and in case of group 1, and in case of filter being in slot 1 of group FX, you need to use 0, 0, -1.
     
  4. Carlos Butler

    Carlos Butler New Member

    Messages:
    8
    Got it, thanks!