HISE Logo Forum
    • Categories
    • Register
    • Login

    modulators, global & macro

    Scheduled Pinned Locked Moved Feature Requests
    28 Posts 6 Posters 1.5k 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 @ustk
      last edited by

      @ustk oh, ok, no they don't work in a compiled fx plugin, so my work around is to add a simple gain and add a modulator to the delay chain (set the delay to zero) and read the modulator.getCurrentLevel() inside the Synth.timer to modulate other parameters.
      That is not the best way though.

      I think the best, in my case, is to be able to use Macro Modulators and have hidden knobs connected to the macros and set all other parameters inside the hidden knobs cb, but it's not possible I'm afraid

      Hise Develop branch
      MacOs 15.3.1, Xcode 16.2
      http://musikboden.se

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

        @ulrik https://docs.hise.audio/working-with-hise/settings/project.html#enable-sound-generators-fx

        That will give you the macros in an effect plugin.

        ulrikU 2 Replies Last reply Reply Quote 3
        • ulrikU
          ulrik @Christoph Hart
          last edited by

          @christoph-hart beautiful, thanks as always! 🤗

          Hise Develop branch
          MacOs 15.3.1, Xcode 16.2
          http://musikboden.se

          lalalandsynthL 1 Reply Last reply Reply Quote 0
          • lalalandsynthL
            lalalandsynth @ulrik
            last edited by

            @ulrik what are the macros used for ?

            https://lalalandaudio.com/

            https://lalalandsynth.com/

            https://www.facebook.com/lalalandsynth

            https://www.facebook.com/lalalandsynth

            d.healeyD ulrikU 2 Replies Last reply Reply Quote 0
            • d.healeyD
              d.healey @lalalandsynth
              last edited by

              @lalalandsynth https://docs.hise.audio/glossary/macrocontrols.html

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

              1 Reply Last reply Reply Quote 0
              • ulrikU
                ulrik @lalalandsynth
                last edited by

                @lalalandsynth I use them to control fx parameters that not has a modulation chain, or to control any parameter you like

                Here the chorus rate

                lfo.gif

                Hise Develop branch
                MacOs 15.3.1, Xcode 16.2
                http://musikboden.se

                1 Reply Last reply Reply Quote 1
                • ulrikU
                  ulrik @Christoph Hart
                  last edited by

                  @christoph-hart yes it works but... it's very high cpu usage, I use 4 Macro LFO Modulators and when compiled the cpu peaks if using all 4 Mods controlling 8 parameters...😩

                  Actually my old system using 4 modulators inside 4 SimpleGains and read them using Synth.timer, is much more efficient and less cpu consuming.

                  I guess I must be doing something wrong with the macrosystem, or is it very demanding on the system?

                  Hise Develop branch
                  MacOs 15.3.1, Xcode 16.2
                  http://musikboden.se

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

                    @ulrik Can you make an example snippet that reproduces the high CPU usage? I never optimized it but that CPU level sounds super unreasonable so there is probably something fishy.

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

                      @christoph-hart the plugin I tried it on is much more complex than this example, and deals with a lot of data and calculations.
                      But I think you can see that using macro modulators are more cpu demanding than the comparing example I'll provide as well.
                      And when using the macro the cpu suddenly jumps up 10% more and then go back to normal again.

                      The second example is exactly the same setup but I use 1 callback only and that is the Synth.timer at the speed of 1/200

                      Macro example:

                      HiseSnippet 2458.3oc6a07ababEmqjXRjrbPRSZCPOQHz.PUKugereIXjn0Ve3pDIsaz5Z0.AWaJxY2cp4RRSNqk2TD.2a8VOTzC9PQCP9GnW6gh5doWSuTzhdREAH4TAxgdtougj6xgRj6RsVRYSiWAHINy7l26868dy7l4wstqsNxyy1kK2r2pmChK277M5YQZuZaMrE2lqwk66xSPdDgNZ5t1BDaA81tXOtazyQyyCYvkK2z2jNzbyNCm+mubkanYpYoihZhi611XczV3NXRTq0q9dXSyMzLP2B2gYzEptots0p1l1cAwZZdINGM86q0BsiFcXSwyk6EV2.SrcaPz.YiK2L2v1nWi11GZEL9ai8vGXhnOHy0.lnfl2v1zfJwzV4VsM1znde02iiKGe8HvX5.v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5hrz6wlnFMjdynUDp9qptm1CQMgL+BuNqAjuEpEvH1VtEBxHsQOKcVOiFcrsIsg0FiuPwqWcKaam0sz.U2fcRp2Vyid63dHB6zrZWOhcm9xh+qMSC3bT92BWt84KUH+gR31Ku1d0d2x81B9o1181pwUZ9fatdEr4GXdXsRueqGrL84hqRLtkUsCpXk+J0a8faVogZw2Wp1p.oWIO7wm9GTq16df9x4OMd1iXqsoxnu0q4aIGXxn1zI7zfCj3A9SeCPh6G+pLoF+pb5ieO5Sb92eCN9E9zzO9a4UgeoV6r44mG+9+0wupSpwupiw9u+8O4+7732mG+9so32BSpwuEN8wuerya+eed76yie+1T7awIvqunurUZBV1JOAKaUtHksKhKN8hfG9eehtqdv6TDc0pWxuEPus7+Z9DcgQguLQuFekx4UKpTrRgJpUpTpr7xz5mguqtN8BttJL04z6+x.Zb2Au2hvTQKrG62PFl9B95EE93cCXc3KTjeQo44kxKE7FLvyKC+qo8g8asMtU69MisdHxkzuJOtHMCaKydgqZjrloDoYvtIkqTtXwkKJsrR4xpENSzL4j0LkycMavaL22gWtbdoRfAqTQIEoxEUNSTLkjUL0ycEqPjISMeoJJpUJHIWPVY4RpmMNipIqYEN20rAupgg7HltjBMkFCZJOFzTYnzPqUw06B4pEby6PC0WOHKsbCx1K2zb+O.OmES.A
                      

                      Synth Timer example:

                      HiseSnippet 2396.3oc6a07aaibEmx1L6JGuKxtavtG5kAtcAnabTD+Pxx0aqUhc7Vi3ODrRi6BCu6RSNRZPnHUIGEakh.jK8bOu2ZQO0qE8RukiEn+AzdL.6kBr.K1K8712PRQNzVThVwN1GDOXaNy7l2686807AcMWGCrmmiqPt7OtWGrPt4Dq2yl1ZsV5DagMWWH2OQjh8nHWbytV5tHqFNHpCxnkKwS3A85n64gMExka5OmQPt7yH3+7Cq9.cKcaCbbSBBOwgXf2hzlPiasV0GQrr1P2D+XRatQqUcSCG60brb5BB2zhEE5na7T8l3czYCaJQgb23glDpiacpNHgB4l4ANl8p2x4X6fw+DhG4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HuOQLVKPuI4KF6638ssU9citre+.mOuORzO3BwZQdH2uufv5XK8DIi1+zKzd.eA.aZCAnzZNV5tmNU1ElUelLmukoRWQ16LJiennOLe0HjIhed+.oTTbqM1MLoahq4TdzBFjo720EaaziuXN6K+XyXGqp+wp6q+LbCX0AgG4QD4agaBLhukGigUsTumsAuiT81NNzVPrTxumjaWcKGmNOzVGTcS9IoVKcO1o15go7SyZc8nNs6KK9evI0g0Z6eRM4NPrrVA3owcX+b40fent6Ey6BmCy2HBDlJiNYejukLxjwroWCCEBjxHenqoR4GJ5mF75cVkaIVSeRgt3BcJSJzMoPWVKzoLVE59gIE5lTnaRgtIE5tRKzoNoP2jBcYsPm54uPW0Y+2e2jBcSJzMoP2jBcWoE5zlTnaRgtrVnS67WnC8G9t+2jBcSJzMoP2jBcWnE5davi15FtNekQvmrJKZ6c8aAzaa++2ZyKtM6cTzmU7GIpUnXI4RJUzJoVQo7xE0XedFjuxvf8k.bWYAgAOCQeaw2VrXAUMEshxkVVcYE0RkqrT1lB0XgX4xE.5UTJVVSoXkkqjQgPKdFjkKUXIkkKsTYY4hUTWtR1lgnu0XQPMJlMZJOFzrzXPSkgRC6+O462EpFDDr.MT6gA0AxEUOI2zB+ebPN1dK
                      

                      Hise Develop branch
                      MacOs 15.3.1, Xcode 16.2
                      http://musikboden.se

                      Christoph HartC ? 2 Replies Last reply Reply Quote 0
                      • Christoph HartC
                        Christoph Hart @ulrik
                        last edited by

                        @ulrik hmm, both use about 3% on my MacBook Air M1.

                        ulrikU 3 Replies Last reply Reply Quote 0
                        • ?
                          A Former User @ulrik
                          last edited by

                          @ulrik On my MacPro the synth timer example hovers around 1% and the macro example around 2%! Great stuff. I used timers in my instrument as well to make any parameter modulate, but the macros are are great too for that maybe... 🖖

                          1 Reply Last reply Reply Quote 1
                          • ulrikU
                            ulrik @Christoph Hart
                            last edited by

                            @christoph-hart hmm, ok there were not much difference in those examples.
                            Now I have two examples again, and this is heavy operations going on.

                            Both examples execute exactly the same tasks.

                            • example 1 (4 modulators in 4 SimpleGains, level read in synth.timer)

                            lfonormal.gif

                            • example 2 (4 Macro modulators, 4 cb controlling the same parameters as above)

                            lfomacro.gif !

                            Watch the cpu

                            Hise Develop branch
                            MacOs 15.3.1, Xcode 16.2
                            http://musikboden.se

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

                              @christoph-hart you use M1, I use Intel, is that the problem you think?

                              Hise Develop branch
                              MacOs 15.3.1, Xcode 16.2
                              http://musikboden.se

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

                                @christoph-hart I guess I'm doing something stupid in the Macro version 🤪

                                I can send you the macro version if you want to see it?

                                Hise Develop branch
                                MacOs 15.3.1, Xcode 16.2
                                http://musikboden.se

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

                                  @ulrik You are running the timers in the deferred callback, so it's no wonder why they don't appear in the CPU meter (this is just measuring the audio callback).

                                  The macros will always run in the audio thread (which is what you want, otherwise your modulation system will not work if there is no interface present.

                                  ulrikU 2 Replies Last reply Reply Quote 1
                                  • ulrikU
                                    ulrik @Christoph Hart
                                    last edited by

                                    @christoph-hart Haha...how the heck could you see that?? 😳
                                    You're right, I forgot I had defer true in the timer cb, sorry 😩

                                    Well I took it away and now it's running defer = false, in the audio thread right?

                                    The cpu increased a lot I can tell, it's almost as the macro but not really, the macro version is pending between 20-40? and the other version between 15-25 ?
                                    On the other hand it stopped with "Execution timed-out" in the timer cb

                                    lfonormal.gif

                                    Hise Develop branch
                                    MacOs 15.3.1, Xcode 16.2
                                    http://musikboden.se

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

                                      @christoph-hart thank you, I will stick to the Macro system now :)

                                      Hise Develop branch
                                      MacOs 15.3.1, Xcode 16.2
                                      http://musikboden.se

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

                                      18

                                      Online

                                      1.8k

                                      Users

                                      12.0k

                                      Topics

                                      104.8k

                                      Posts