Forum
    • Categories
    • Register
    • Login

    Selecting different functions in Faust

    Scheduled Pinned Locked Moved Faust Development
    4 Posts 3 Posters 75 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.
    • JulesVJ
      JulesV
      last edited by

      Sorry for the basic Faust question.

      How can I make a selection of the functions below, along with a few more functions, using a single slider?

      re.jcrev;
      
      re.zita_rev1_stereo(20, 200, 2000, 3.0, 2.0, 48000);
      
      re.dattorro_rev(200, 0.5, 0.7, 0.6, 0.5, 0.7, 0.5, 0.2);
      
      Christoph HartC S 2 Replies Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @JulesV
        last edited by

        @JulesV AFAIK branching isn't really supported in Faust, so the most practicable solution would be to use a branch container in scriptnode and use one faust node per effect you want to switch.

        JulesVJ 1 Reply Last reply Reply Quote 1
        • JulesVJ
          JulesV @Christoph Hart
          last edited by

          @Christoph-Hart Thank you for the info

          1 Reply Last reply Reply Quote 0
          • S
            sletz @JulesV
            last edited by sletz

            @JulesV You can possibly use ba.selectmulti as in:

            process = ba.selectmulti(100, (fx1, fx2, fx3), nentry("Model", 0, 0, 2, 1))
            with {
                fx1 = re.jcrev;
                fx2 = re.zita_rev1_stereo(20, 200, 2000, 3.0, 2.0, 48000);
                fx3 = re.dattorro_rev(200, 0.5, 0.7, 0.6, 0.5, 0.7, 0.5, 0.2);
            };
            

            But yes the 3 branches will always run here.

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

            30

            Online

            2.1k

            Users

            13.1k

            Topics

            113.9k

            Posts