HISE Logo Forum
    • Categories
    • Register
    • Login

    Global access of values if using Faust node

    Scheduled Pinned Locked Moved Faust Development
    9 Posts 3 Posters 527 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.
    • P
      ps
      last edited by

      I made a little RMS Analyser Faust code that works fine in my script fx but obviously I wanna get the value on my UI or use it for calculations in my script. Usually I would use a global cable for something like that but as far as I understand / tried, I need to compile the whole network once I use a Faust node. Is there something that I'm missing right now on how I could get the value into my script?

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @ps
        last edited by

        @ps If you compile the network containing your Faust node, the faust node itself will also be available as node (it will be compiled like any other third party C++ node).

        Then you can connect it to a global cable, then you can use it in an exported plugin.

        P 1 Reply Last reply Reply Quote 1
        • P
          ps @Christoph Hart
          last edited by

          @Christoph-Hart yes that works fine in general but if I import the compiled node through projects into a new script fx I don't have the modulator there anymore to fetch the value (sliders are no problem).

          Christoph HartC 1 Reply Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart @ps
            last edited by

            @ps Yes that's correct. The modulation outputs are not registered if you load the faust nodes directly.

            What you can do is to add a routing.public_mod node, connect the faust mod source to its value parameter and then export this network. This will create a node with a modulation output that you can use with a global cable.

            P 1 Reply Last reply Reply Quote 0
            • P
              ps @Christoph Hart
              last edited by

              @Christoph-Hart ahhh. I forgot about that node.. Awesome! Crazy how many possibilities we have now inside hise with the Faust integration. This is really some major stuff! Once midi out is working in the daw there’s nothing to wish for from my side I guess haha

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

                @ps said in Global access of values if using Faust node:

                Once midi out is working in the daw there’s nothing to wish for from my side

                Time stretching ;)

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

                Christoph HartC 1 Reply Last reply Reply Quote 0
                • Christoph HartC
                  Christoph Hart @d.healey
                  last edited by

                  Just FYI, I've pushed a change which enables multiple modulation sources in faust by declaring multiple hbargraph/ vbargraph primitives.

                  This will most likely break your existing networks with a single faust modulation source because the data structure is very different for multi-output modulation nodes (which is why I've implemented this rather now than later if many people are already using it).

                  46216aeb-14e0-467b-ae78-ad09b5275c6d-image.png

                  If you want to propagate multiple outputs you can use the new packx_writer nodes which just write the values into a slider pack that you can access from the outside.

                  P 1 Reply Last reply Reply Quote 3
                  • P
                    ps @Christoph Hart
                    last edited by

                    @Christoph-Hart works great in HISE - just tried to compile a little test FX plugin with following fail in the languagemanager.cpp:

                    Use of undeclared identifier 'FaustTokeniser'; did you mean 'LuaTokeniser'?

                    and

                    No member named 'getAllFaustKeywords' in 'juce::LuaTokeniser'

                    Christoph HartC 1 Reply Last reply Reply Quote 0
                    • Christoph HartC
                      Christoph Hart @ps
                      last edited by

                      @ps Yeah I keep breaking stuff with this class... It's fixed now.

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

                      58

                      Online

                      1.7k

                      Users

                      11.7k

                      Topics

                      101.8k

                      Posts