Unexpected global modulator behaviour
-
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.iQmF+Pi0a2lXIR.3LFa7KmNG8Ra9YCM+WX7.G99XmDGEDS.HgDdD7qhFFMbbzPApMA9x+Ju7kd4luTu3j3GqMk7iy7dG+Xdii+jQ1ZBNCOskgEO59USi8HNbKoIk.7SG1LAh0dyPbUpG2A6KG+IAjVXEbRFdSVefqRpeRfUchEcehLFNa7Vj4UyghyScOa9cA0N8IbJd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lEzJBA15fjdt1x6RbH3zAve6xaAAdX+r0K6D4Kpch+S7L18qO2HDtH4gQz6Uj5QkR5KipxphKALluX3xPsB953pvpD.oj3DUtyjZbJuNHt1lvYvLEsDRmfQTodooWaR0jeowUy0SkRdNatK56hmDuv+yqz64tK6OKp.74Ea3hs74OyJ7QHRdzYU8.9Vl5+RfRFaKaipE+zCCipKTUyEtM9YVVxszuG1CFuNKNE57CSgN2bJz4VSgN2dJz4NSgN+3D0QlHzJ8Db2vi6PGMVOj+QecljLRcxR6eAb9bF9J
-
@d-healey Could it have something to do with this?
-
@ulrik I guess the messages I get when loading the snippet, is because the snippet doesn't contain your external script
-
Do you use setNoteNumber() or setTransportAmount()? I would always use setTransposeAmount, then you don‘t need it to mess with the note off.
-
@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 withsetTransposeAmount()
and the modulator works, why is that? -
@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.