[bug] Global voice start modulator not correct when redirecting note
-
I have a global velocity modulator which is assigned to the gain of a synth. The synth also has a MIDI processor that simply blocks all incoming notes and instead plays middle C, with the velocity of the incoming note.
The problem is the velocity mod in the synth doesn't respond to the played velocity, unless the played key is also middle C. However if I use a regular (non-global) velocity mod it works fine.
Observe the tables for the two velocity mods in this snippet.
HiseSnippet 1204.3oc6XstaaTDEd23LU0tkpVZAg.gXQhe3HEEEWJEDQnlK1Nxh5DqX2.+qZxtGaOJ6Ny1Ym0fEh2MdD3QIuAvYlcs200FWaqjFkP8OhxbtLmu4baly1RJbgnHgzxtXmggfk88IsGxU8OnOkwsZT0x9AjAfuvkoF1AhTV6OLjFEAdV11ENTKicw0sL+t3E6S8obWHijk0oBlK7RV.SkQs0t+Ly2uN0C5vBxI8y1sgqfefvWDi3o.YaqPp64zdvQTsXqQrruSMOlRHaqnJHBkYeg2v18E+FOQ9SYQry7A8hJVswMJgr0A8Y9dsFcVirvMpU1IuPxI+IjlLO1X5YdfGZX3joQdef8ZyCRUVBHYmCRqm.oGQZ6JYgpLNZ7bORCtBjconqNOTRj0x9uHGHPA3psBnmC0k3hwJT94au8lN3e1XmtwbWESvcD7iDJ3Xd4MJ8GkJV5OK471r51cl7zlQJ78A4LYqitx4oXYdbvYfbSmAT+XXrf3weRe5cVLepaxoNmfBdCNScbHjtttv2S6qz++zQ.qT2F9eupQUphpCJozP4BAohogicUX.lUmDhJRpBQmqDgXd8TwOLyQ3E6SUSlNoqaRYf9iIhg5.EOBK1xWWsD4XaO2brEEhOhzhob6OaLt1LvH5otJvXZk4GQp0sK3px.35j5+5pVFt3l+tIl+yIG5KNi5m4nvbBDIPR43Wlx1YLemwBTYN8K+6EseY3B2uztvkUyn0uF5Od4j693oBGQuGqvlnKdZ9SIxoo2fZ.3mLdYFDq7tg39rPgOUp4+pHnC0.mrDmF7AX+Is9YzpBtry.cdKrhkpUt5amT31c6jSDwJFuWSpRx9cKaxQwAsw5UW.sNmC93lSrWSe4Sx5s0q0df1.2yr3eveoLqnWamxrxHlynk0Tuh69jEpmzEuu6IsLuYibismzGtx+lxU9OHw72izFKUL0PFi+ol0N+Bc.3bHfEQS2z9J+x8icUn46Ho7nPQzDabaHf0Qv0dgLh3sD0kvaNQGMyS+.AUNSVW7h53gbl5zlphklzh8BDwb0DoAuUA95K10ISVQjS9aDuFYwmV6woTyPTkYM01ZuwlHgdNLu+qAyXccJyhpBcwfjWYl2FaTpXQSJ5V7jgz1eXsA3rJMLb2A4VpXSzh3Dzaw5wERvvtrRhCagrwszy4mbR1hPe5Ps0vAD2zYjV8.0n2pTdCTk4LZnFce8TvSBXdC2Xq4hTCPh4dIZuy0zbljKq4L++3rk1EZM0GS5gXayfPenFW+MjPJZL9w3opKM1WMh5j0CMEbQXeAm4luIyI.99od8.YdrOyCzdJE087LJOY2S.eflug42r6KwzLpbxGFuT9hk+a4Ly30mQRfqiNG14Z+ABoud7KRGgxbeEZ.oZLzMn9qFMhkQ.GiDK0rLYCvneZwnAWvV6ZhlpC8W6CKO3foT1xtx7Fx9Gm0.UWIS4r3Sz8zkwKjOkdgGiajMmzo8gg6tkMb2sEaDPckhW6lbirtG4cMTPeK2748KRZpW6TwxbKc97k.7Acu10cxsZJEe5pp32tpJ9rUUwuaUU74qphe+pp3O7tUT+d68hUhfjxeKqlspkzOxtFW2bxT0Y8u4SxN8.
I should add that the mod in the global modulator container shows the correct value.
-
I found an ugly workaround:
In addition to triggering the note I want (middle C) I also trigger the note that was played, with the correct velocity, and immediately kill it. I thought I could just let the real Message through and kill that but it didn't work, so I had to play a note.
Not sure how this would work with a polyphonic setup but I think in my project, at least for now, I don't need to find out.
HiseSnippet 1267.3oc6Y80aaaCDWJ1rH1sqncsaXXCCSOrGrAxBh655FVvPyercfwpSLhcy1aELRz1DQhTihxaFE8619HruIKeC1NRIaIUq5X64jh1N+PfIu6Hu638ueNcDbaRP.WXXVp2Xehg4cPcGyjCObHlxLZU2v7tnQDWtMUNtGIPZbvXebP.wwvzrvQJdLKUz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pT8MejwpH1w4LtanGQkHTYx4ukEnLeSMED14BVMOa+kWk4GY8gLmHw1sD3PdkxqT9sD1Wz5B66Gh3cMKL6z32CJZ646RZvT+tVvNJc7iAqpONzUNY2rYis4Lt+PNiZmtD2oDX5sACHhrygmiAsuThsuHYmGt2oDWBNc45udumAAbXQ1g0WJewx+6Kk660mghTWKULr0+k2shK161U7qxL6breQLDOcmS3xDxolg1B9pIP.0LXo4XovZk.vRMjyDfUPSlLHlfTEFQmVaXVad+H.+Xd.9tVvas4Bi37QKiW3CbXlq833Ueb10ipbS.+78k6vCaK3uvNpqspN5l5c.eKS+uknDpsZsUMCcm7zwQdvHmuv1N6QMifOZUE7aWUAe7pJ32spB9jUUvueUE7GtZAUHB1OTx8hJKXXztSin5TlMXphV5LPi+EPthb7C
-
Ah looks like I do need some polyphonic-ness after all!
-
Nah this workaround ain't no good. @Christoph-Hart Got any suggestions?
-
Ah looks like Dave of the past already went through this struggle and found a solution - https://forum.hise.audio/topic/2259/global-velocity-modulator-issue
-