HISE Logo Forum
    • Categories
    • Register
    • Login

    Unexpected global modulator behaviour

    Scheduled Pinned Locked Moved General Questions
    velocitymodulatorglobal
    6 Posts 3 Posters 365 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.
    • d.healeyD
      d.healey
      last edited by d.healey

      I have a project with a global velocity modulator.

      After the global modulator I have a container which contains my sound generator. The sound generator uses the global mod to modulate gain.

      At the container level I have a script that filters out all notes below 40.

      Before that script I have another script that will change the note number to the last played note when the incoming note is 36.

      The problem I have is when the note is remapped in this way the gain mod doesn't respond to the velocity. However a non-global mod in the same position does respond.

      Why is this? And how can I get the global mod to respond?

      HiseSnippet 1685.3oc4Z0sbaTCEdW6rk3skRKTXXfgAQFtvoThsC8GlTJM+3j1LMI0SraJ20QYWYaQ1UZYWY23R40fmm9HviRukqfiztq2cicb23oIsD7EdrjNGc9zQG8oiNIM74Vjf.tuldoVC7HZ5Wxn4.ln6ZcwTl1l00z+HCehvm1oCwuEIPns5.ObP.wVSWu3CjBoWZFM0mWe+UwNXlEIoKMs83TKxVTWpHo2FK+HpiyFXaRKpaJou4xaZwYqwc38..UznplG15.bGxNXoXELzzuv51TA2uo.KHAZ5yrJ2dPyt7myBkeOZ.ceGhrQMslvDE18FbGaIhk8psVWpici3EdfFLoMRbCECcCWyXapMcX+ItiqnF.knQZ+gdgrvqXF3UKM7plBdiAR5ofzLgP5pFMs7odhjQj34hFaxDD+1XvsmFJgxpo+Ji03f.LwBt3CHa3CMFpP4aWs5MPvWye218XVBJmg3rc3BxiYkm272MKY9GlniNT61icLoY74NND+wNrbm1eRJVl0yceh+MP8wN8HCEDV9Y8oFGuOM8VtU3pNkfb1lLp3wdD1wEHnE4pfe8jMqiEX4FQTefbdDeAUBA85j9PTc31RIi5jfCDbOHtdj8LHZga2yAKxFBIO2DM.3CxruI2bXATwfzmqdqEWkWHdUiFTgU2wiwBiAifm5z.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ki6jSA+LrZSu0w6z+Pv25P4xgP4hFMg2lodzlBHelpM5o39DzCHvq1Fs1Am50a5wVBv7CYqSOwMItzVvYmfzc9j.xF9jeaW4tb59Wii8G6Pu99a.KxwpSSrnmuJbI7RhLgG+2pNXmom1dGV9Y8hiVPrq.gwtdNj0Y8INvEAJL9w.yuhBLt2rw0ayYbutbF0J8l9tCexblRgMlEzJBA15fjdt1x6RbH3zAve6xaAAdX+r0K6D4Kpch+S7L18qO2HDtH4gQz6Uj5QkR5KipxphKALluX3xPsB953pvpD.oj3DUtyjZbJuNHt1lvYvLEsDRmfQTodooWaR0jeowUy0SkRdNatK56hmDuv+yqz64tK6OKp.74Ea3hs74OyJ7QHRdzYU8.9Vl5+RfRFaKaipE+zCCipKTUyEtM9YVVxszuG1CFuNKNE57CSgN2bJz4VSgN2dJz4NSgN+3D0QlHzJ8Db2vi6PGMVOj+QecljLRcxR6eAb9bF9J
      

      Peek 2022-09-23 01-13.gif

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

      ulrikU 1 Reply Last reply Reply Quote 0
      • ulrikU
        ulrik @d.healey
        last edited by

        @d-healey Could it have something to do with this?

        Skärmavbild 2022-09-23 kl. 06.59.24.png

        Skärmavbild 2022-09-23 kl. 07.00.47.png

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

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

          @ulrik I guess the messages I get when loading the snippet, is because the snippet doesn't contain your external script

          Skärmavbild 2022-09-23 kl. 07.03.35.png

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

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

            Do you use setNoteNumber() or setTransportAmount()? I would always use setTransposeAmount, then you don‘t need it to mess with the note off.

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

              @ulrik Oops, I forgot to remove that reference. I've updated the snippet in my first post now.

              @Christoph-Hart I'm using setNoteNumber(). I just tried with setTransposeAmount() and the modulator works, why is that?

              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

                @d-healey Because it uses the note number and the event ID to clearly identify the event that is associated with the modulation value from the global modulator.

                Using the transpose amount will not change the note number which is why it's almost always a better idea than changing the note number.

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

                47

                Online

                1.7k

                Users

                11.7k

                Topics

                101.8k

                Posts