HISE Logo Forum
    • Categories
    • Register
    • Login

    Scriptnode Envelope as Global Mod

    Scheduled Pinned Locked Moved General Questions
    31 Posts 4 Posters 934 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.
    • Christoph HartC
      Christoph Hart @DanH
      last edited by

      You can use a velocity modulator as global mod (and with the newest update on the mod_matrix branch, you can even use envelopes if you add a uniform voice handler on the root level that ensures that the voices of every sound generator are allocated synchronously.

      DanHD 2 Replies Last reply Reply Quote 2
      • DanHD
        DanH @Christoph Hart
        last edited by DanH

        @Christoph-Hart hmmmm.... the VoiceStart menu is always greyed out when I try and link to the Velocity Modulator as a GM

        Screenshot 2023-07-17 at 11.18.41.png

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

          @DanH Not available at the container level for some reason...

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

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

            @d-healey ah right... I'll try the scriptnode version...

            1 Reply Last reply Reply Quote 0
            • DanHD
              DanH @Matt_SF
              last edited by

              @Matt_SF Right, the midi is working fine but need to get the level out of it somehow πŸ˜†

              HiseSnippet 1114.3oc2W0saiTCE1NIt6lvxJVAbCBjlKyJUpRVVVPhKXaRZVhflNZSHh6V4NiSiU7XOxim1MBw6FOB7LvS.uAvwimjYRaZZHZ6JDoRMiO+L9672mc70p.VRhRiv0GuHlgvOhLZgzLq6LJWhFzCgeL4TZhgo8bh5rHlljvBQXb0WYEfqWCk84u99NTAUFvJDgPST7.1Owi3lBo9u7G4BQeZHaLOpj0O+kCBTxtJgJEvSURKTLMXN8B1Pp0rJDD9fSB4FkdjgZXIHbsNpvEilotR5reBOgetfYWzFMBdQNw8UhPKhsRQcmwEg9Ki6DDBS7KxBUcYgOgbJOjuRdQ13ixT3U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Bro3uDtaxl84Y6gOe0d3yy2Ce958vmWrG97M6gOe6V8wdOtiSMpH2HGHv+jrYbL9DokSJqSG8OHuWeMB
              
              Christoph HartC 1 Reply Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart @DanH
                last edited by

                @DanH Ah I see, yes the root FX container has no concept of voices so it doesn't make sense to give them the voice start modulators.

                The last puzzle piece in your snippet is pretty easy, you're almost there:

                6eb6035b-a763-4d4e-883b-e3204f542312-image.png

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

                  Oh hang on, that's wrong. What you need to do is this:

                  248eb5e9-4c6e-4dad-ad5d-3d8a326f2e00-image.png

                  Now the difference is subtle but you'll need to make sure that both the modulation source and target are in the midichain container. The reason is that the midichain container will chop incoming audio buffers whenever a MIDI message is received so it can apply sample accurate modulation. By putting the add node out of the midi chain you will loose the sample accurate mod value and just apply the value of the last incoming MIDI message to the entire buffer.

                  DanHD 2 Replies Last reply Reply Quote 1
                  • DanHD
                    DanH @Christoph Hart
                    last edited by

                    @Christoph-Hart brilliant, thank you!

                    1 Reply Last reply Reply Quote 0
                    • DanHD
                      DanH @Christoph Hart
                      last edited by

                      @Christoph-Hart is the external display buffer meant to work with Envelopes? I can't get it to display on the interface...

                      HiseSnippet 1504.3oc4X8zaaTDEeV6LI0tszVAboBjrh3PpTHxtTJH3PRbhSqUqcrxFLbqZxtiiG4c2Y0tiShopRbDI9Dza70faUhSbiOBH9DzO.HEduc1065+jPhkiufqTim2al4868+23VARKdXnLfXT3vA9bhwcnlC7Tc2oKS3QpuKw3CnMXgJdPIMopC7YggbahgQ9mgDLJrDI5y62rJyg4YwSIQHskBK9KEtBUJ0Va8BgiydLa9gB2L69IaU2R5sizQ1GvSdZYhOypG6XdSFtsbThwx0rEJYfoho3gDikpJsGX1Udpmd+sEghib33hJDS3hzj2S5XiHF+NYmtBG6VI5cHgXPakZExqsBeDsgvVLjdp039QLJkdhr1CibiBu7i.uJW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twwpkLNETivonRrB0f7QanRndHLvTPxnmPEqgqfogaH7h07zNfMXmMJse922xTw8ME+XBse8su821zrG+Ts2Jl5VMa7GahF2aQ2Vof2dQF6t+rsHWagCUVGS3QelP3Q6DE9ciE9K4PjCYhKibyq9KSeNzJZbQ+jsV.hdE3IDVrAiI62ErHL7EnPESrVx3Z9esHL5EnGvc3rP97vtOyAc6zO3D97P+mJBd+lWLBtMn+p.wwGCxXhqeAH+kgGdo3SQzousYX8TRl595pjiT0uH0E96FH8qQ89bYq2OZIOiLp+J2LA.IU1m3p2tuRBpi9Aci.qQWTUJ64xhFtYl9IClKu3L++Oew4Ax93OeRCFj.gsQgQCLgvLqjQDCSFLHdc4j.PSX9vnEmCehYVY3v9.yJILWHxvkYEHekkdvbLv+VQT.81K5m.s.sAttTExIwi6fSwRvA+dkkEZt+bv9L8y73Y3LewLblmLCm4Kmgy7zY3Le0Lblu9ROC9t83JDXpHPnUM8baF07XPjbTTO4eAfOgH1B
                      
                      1 Reply Last reply Reply Quote 0
                      • DanHD
                        DanH @Christoph Hart
                        last edited by

                        @Christoph-Hart said in Scriptnode Envelope as Global Mod:

                        with the newest update on the mod_matrix branch, you can even use envelopes if you add a uniform voice handler on the root level that ensures that the voices of every sound generator are allocated synchronously.

                        Would you be willing to provide an example of this, and is the mod_matrix branch up to date?

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

                          @DanH check the ModMatrix project in the tutorials repo.

                          the mod_matrix branch is merged into develop already so you donβ€˜t need to use it explicitely.

                          DanHD 2 Replies Last reply Reply Quote 0
                          • DanHD
                            DanH @Christoph Hart
                            last edited by

                            @Christoph-Hart will do, thanks :)

                            1 Reply Last reply Reply Quote 0
                            • DanHD
                              DanH @Christoph Hart
                              last edited by

                              @Christoph-Hart Mod Matrix proj is very interesting! I can't figure out how to actually add the UVH to the root container though, can you point me in the right direction please?

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

                                Synth.setUseUniformVoiceHandler("Master Chain", true);
                                

                                Obviously you need to change the ID when you rename the patch, but it doesn't get easier than that :)

                                DanHD 3 Replies Last reply Reply Quote 0
                                • DanHD
                                  DanH @Christoph Hart
                                  last edited by

                                  @Christoph-Hart Doh! wasn't looking at the script πŸ˜† Thank you!

                                  1 Reply Last reply Reply Quote 0
                                  • DanHD
                                    DanH @Christoph Hart
                                    last edited by

                                    This post is deleted!
                                    Christoph HartC 1 Reply Last reply Reply Quote 0
                                    • Christoph HartC
                                      Christoph Hart @DanH
                                      last edited by

                                      @DanH If you always name the presets exactly like your project, you can do this:

                                      Synth.setUseUniformVoiceHandler(Engine.getProjectInfo().ProjectName, true);
                                      

                                      But I'm not sure if that is better than just typing in the hardcoded name...

                                      1 Reply Last reply Reply Quote 0
                                      • DanHD
                                        DanH @Christoph Hart
                                        last edited by

                                        @Christoph-Hart Ok so should this allow me to be able to use a Global Envelope Modulator at Container level? Because I still don't have the option to do so - unless I need to script it?

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

                                          @DanH Sure you can:

                                          HiseSnippet 1100.3oc6X0saaTDEd1XOkZ21Pq.gDHPZUEWjJkFYCkBBtnNw+jDQchUVmB2UMY833QY2YVlcVCVHdO3RdT3QfGkdM2.mYl0d2sw35XERappuvZmyOy7c9cOy1SJ7owwBIxoR+IQTjyswdS3pQMGQXbz9sPNqi6RhUToqkzNShHwwzAHGmR6pI3ToLx76EOYGR.g6SyHgPOSv7oOkExTYT6036YAAcHCn8Yg4j9QM12WvaJBDI.dJgqghH9mQNkd.QK1ZXjyMZOfoDROEQQiAY1QLXh2HwOysx+LVL6j.pdQcjGrQVxnliXAC5M0ViQvF0KyxKYs7OD2kMfMidlG3tFFtYZj2G3r1hfT8K.jbxAoxVHcOrmujEox3nwysv6yg.xPB3pyCEqrHm+F2T.BvUaERNi1QBKlovFOtVsMcg+dv2UspIRuULUcbL8XNanPFZhW6Q3CBnxMte9H+82zUISnZ8Flv8ULA2UvOPnnGx23AU+0pUp9aUceYVCGNWdZ.JEA5CYdr04ExEo3F7jvSnxMcGSB.LMUPvwULZbikKZ3a8W4DTv2myTGFQSW2QDLP6k0Oe9XGJ0gCOc79sHJhNblRCjKhJULMbbZQGC9WavsBtEM9LkHBpHNWjGx4DCRBHphIh5JtTFf+nPzWGh4wL0j7UjWfryZKL6bYg38v8XJ+QyGiqMGLBdp+OvXZM8cvsGNj5qx.XYbmebUKfW9i+l1i+Sv6FHNgDj4nfbB.ITag7mkx1cFe2YBTeAcZ+qksSazR2o0ozkUarxuF5rd4j69AmKbDeEVgUn++csv78vauWKuiRqrLO61lOlF.sTJlfzUvEQiDble9bhinJI6zSoxBuklEIBHx+SKZakBdsayD43B4Wsn9jImipU37YVVJOkBnLuf6AMPyV+4MLa2LB+orgWRrpPVtF9ATRb148G+di19BH5PWwHvqH0EujIJ2AaMRWSU0ENEo7xkh7JdkyRh00mhUaD4MavdarIs35fe88woIrWKbrqiSqktN3ZW3LDkd6dFhiDIJF+ztDnw8u.cjNHIzCdIsOENcNmF.aN1YM8Dm100zq0d.OJefYw+.+RYVWu1IkY8oLyahqaMwag8fYNLWGvXfejYs6OPFSc2kBSinCPWwSjbnuBN99RBONRDWXi8ngr9Bt1SmQDtCSGI8mNRmwjmdSAQNWVu3Ic.ibt53QTIRSp21ghDtpPpVoktzH+qaJN4dN4eqZDpWi2Pov7SUsX7iSmna5LSyPrAre5z48lxNavuUb3JDZt1HjZ1mXLBsSXLbaP69ZHZttn9ia.i9yol64hbd3htYv29xCBdoMAz65P+lQG5qhyHj3KEO2298Tz0O2zPArat4ysUA2Uu1sNx7MV.8v01pFJD517beesK9gPyq4qyWrB57kqfNOZEz4qVAcd7JnyWuB57MKTGci9sSThPaIGPnWaa2Cm1bcqDSlN5eADN6QmH
                                          
                                          DanHD 1 Reply Last reply Reply Quote 0
                                          • DanHD
                                            DanH @Christoph Hart
                                            last edited by

                                            @Christoph-Hart ok but this is how that Snippet looks with a Container... Am I missing something?Screenshot 2023-09-13 at 09.41.05.png Screenshot 2023-09-13 at 09.40.04.png

                                            Christoph HartC 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            22

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            102.5k

                                            Posts