HISE Logo Forum
    • Categories
    • Register
    • Login

    Global velocity mod

    Scheduled Pinned Locked Moved Scripting
    4 Posts 2 Posters 723 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

      I have a global velocity modulator, I want this modulator to act as a master velocity curve control for the entire instrument. So to do this I think I need to use Message.setVelocity() and use the table's value to adjust this velocity from the top of the chain. Like so:

      HiseSnippet 1285.3oc6Xs0SiaDEdLA2BgR0h5Vopp9fEpUJzKoIrvRqppVfDBMZ2.QDV18sUSrmjLE6Y7ZONzrU8g9Kq+E5Ok8eP643KXavERPKzsW7CQLmKy7cNy47MyPWOoIy2W5QzV53ItLh16o2ahPMpwHJWPZ2jnsfdWOlOSQ1chK02mYQzzJsOpUaw4Igeu9Q6RsoBSVpHB4DI2j8DtCWkJs61Olaa2hZwNl6jw5M1tsoTzPZKC.jTRuFwkZdJcH6.JZ1b5jwb1Y9DsZ5OX8pdmVu+q1oJ9sK9Sqs1uZ0l3e0kJcdYPnlt+n6q17wDy.OOlPcB3NQSW6OfOM88r3JoWOEUwf4b9ckVS5MRdlHZoOg6y6ayvA0I8.LEItkz1BCdTJowHtsU2jjmOgn8NcSSkkhRk2WuC2het7zT58BUXj5Q1Tq1bWE7pe8vqVQvSKC7lOBdqn2yzi6pR0DgswLaoIWMoGSXwxisHGHy8qZ5MjBEjXqBUFOiaoFUYyZ0V66VtbF4+.iObjBTfxWtLrC6qLFS8LF6HsL9divBspCYpNRq.aJDyUVMYwAQqhtE4jpuMXexTCdzP53JEvfJqdLExF0AiGDHLUbovPJNPpXGJprV4e1H5a4x3ucfvDJpPrcR75To95a800qUy3ywEAm5v46Dpc.qRh8CyX+ZqAlVGi0x+R4KtjCFfqY4EyqBwsmz1l4UjVrSv6JbqhHvoOy6KgLGfoD6fcw7kIkmtxDynbXFCkh1Bt5PWVb4eR16RRFLHqnzfJqzvfo.yREc4ZSR79JVkFaNDcpvZzkiqQC2THbKjNJZCmDlNvd5GBSgEUQIZel95aTM+23CgeF7E3e9sMBGSHOscSz73kCVY.MtLOEGyiZMYiAhqnVjE0ax7OUIcCsMtjin8tWK39oTtsE1dRVZwyvlED1VvfQgcH3n0gQtIIk1V3jmoU.XNuT6KPhjz1jkYAYliU.kQ45daiAqOLiYYtmA5lZSMa3zB2Uz6xUliJFuyU.dgMsaa7FSdur9dCFvLUofcd8VO+lxTeyfxBQP4i022V1mZml.gxV.UrHF6OIVsw45MRM3u9P6eeZOz1cpOzVqzswQWy+2vIqu4K0+fKsK4+Fs47FdWf3Rrx5IGvEB17jOWKLepOKhCLir1hw.kJ5TZ0USlIuOCqiyWzEuVgyQyYfI+homRSW54Vhupz+M4qNRFn3hgcnJONbrm9AAN8.FASFfDgfY6iGuMGdLez3Z3XLyf2urVxkxiUVGGqEqrdhxrg66GEtKo2C32BuAYXv9ggiMdFcLyXeFv7gab2sreGZpfU+XOpv2U5mah6wb3GCWdvOqPnqokG6kGgERYk2PR8JT0qeTKHFKzmdTUfWXE4NNx.gJWE3EXk0mttj7WjHi8uERWea7PnUNmCrI220lNonWBo8a5E9rin2a.GC6KsYUc83vKUJ90Duk8Lhk9GxyHt5c4zmTbitr+c2ssKMcTvWSc7hIXrG2w0lsm.qbAIQkwMYCnA1pyklEjcjBo6Hofalkw3HFvkObHyK+A5EDO6nTTySSkb+sOhYynYY+9zseBvZQ8xep+LkJpO8ohqZ65izifqAVdY7uiGI8+W53V6RG2EqgC0zS9ByH1MrVdgPIPbKB+OetndGbrw4+6NvbiCbl4KLMwj8WAYmh8X8Y1iGLydrwL6wlyrGObl8XqY1iu4J7.ufxNAJoSTqGg7mG5oPlA�
      

      Am I over complicating this? is there a simpler way?

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

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

        Why don‘t you use a global voice start modulator connected to the global velocity modulator everytime you need velocity, that‘s basically what the whole global modulator system is for.

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

          @christoph-hart I'm doing that for when I need velocity for a modulator, for example I have several envelopes that are making use of the global velocity mod, but I also have a velocity filter script that is supposed to ignore all notes that aren't in a specified range, I can't get the modulator value in that script because Synth.getModulator() isn't finding it, I think that's because it doesn't find modulators higher in the chain...?

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

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

            In this case you might want to try using an unconnected table on the interface as setting the Velocity using Message.setVelocity() (I've fixed the bug that the value isn't shown), however this works only if you don't defer the main script.

            I've tried to make tables interconnectable between scripts, but this is rather difficult because of the order of creation (the first script is compiled before the second one can build it's components).

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

            51

            Online

            1.7k

            Users

            11.7k

            Topics

            101.9k

            Posts