Forum

    • Register
    • Login
    • Search
    • Categories

    regex select not

    Scripting Forum
    2
    2
    55
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ulrik
      ulrik last edited by

      I try to select all Effects except the FX slots
      So if I use

      Synth.getAllEffects("")
      

      I will get All Effects, how do I select all Effects except the ones with an underscore in there names "_"

      Hise Develop branch
      MacOs 13, Xcode 14.0.1
      http://musikboden.se

      d.healey 1 Reply Last reply Reply Quote 0
      • d.healey
        d.healey @ulrik last edited by

        @ulrik said in regex select not:

        how do I select all Effects except the ones with an underscore in there names "_"

        I just saw this thread for the first time, better late than never 🙂 I'm sure you've figured it out by now but maybe this will help someone else.

        const fx = Synth.getAllEffects("");
        
        for (i = 0; i < fx.length; i++)
            if (fx[i].getId().indexOf("_") != -1) fx.remove(fx[i]);
        

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 1
        • First post
          Last post

        7
        Online

        977
        Users

        6.6k
        Topics

        60.6k
        Posts