Global velocity mod



  • 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?


  • administrators

    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.



  • @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...?


  • administrators

    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).


Log in to reply
 

5
Online

306
Users

848
Topics

5.5k
Posts

Looks like your connection to Forum was lost, please wait while we try to reconnect.