HISE Logo Forum
    • Categories
    • Register
    • Login

    regex select not

    Scheduled Pinned Locked Moved Scripting
    2 Posts 2 Posters 128 Views
    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.
    • ulrikU
      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 15.3.1, Xcode 16.2
      http://musikboden.se

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        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

        55

        Online

        1.7k

        Users

        11.7k

        Topics

        101.8k

        Posts