Behavior of the HISE filter envelope
-
@aaronventure
Thank you for your feedback! :-)
I almost thought that I would have to solve this via Scriptnode. Unfortunately I'm not familiar with it at all, but I'll give it a try.Thanks to you
Oli -
@Oli-Ullmann have you tried the bipolar freq modulation? That‘s precisely what it‘s made for.
-
@Oli-Ullmann You're just routing signals. Modulation output needs to be 0-1 (or a factor like that for pitch modulation).
For audio, you're outputting modified input, and you're essentially doing math operations on it.
In your case you want a polyphonic Script FX (because no point in AHDRS on filter in monophonic mode unless you have a mono instrument), you want to add a filter, you want to add modchain containers (these are independent and do not by default pass the signal outside down the line, instead you need something like core.peak that will output their signal with a cable) where you'll set up your algorithm for controlling the filter cutoff. Make sure to right click the filter cutoff and remove the skew (set it to 1) so that it's linear. There's built in ahdsr modules already.
If you want to script continuous (envelope) polyphonic behavior outside of scriptnode, this might be problematic (I haven't actually tried) because I don't know how would you pass a value to a scriptnode network that only affects the certain noteID -- there are no callbacks in the script envelope modulator.
-
-
Hey @Christoph-Hart , hey @aaronventure,
Many thanks for your tips! :-)
I'll try that out straight away.All the best
Oli -
@Christoph-Hart
Basically, the method works with bipolar freq modulation. However, the envelope only seems to affect the cutoff frequency from a level of 0.5. Am I doing something wrong? Here is a stippet of my implementation.HiseSnippet 1239.3oc2X8taaaCDWJwLs18Oqsncq6aZE6CN.co1IYcCnXHNI1tIXwINwYs8aErRmiIBMolDUVMFFvdb1iwdDFvdA1ivdC1NJJaIk3k53ttDO+Aae+i73c+HOdrcfzEBCkAV1EObfOXYeSRmABUuM6QYBqsqaY+YjMX9RNMvoIiq.7m.36cZI8bNDBUNUpZsw.eZXH3YYaO+y0lYWrfU7m+bsMnbpvERYYY8BIyE1g0moR41t12x37lTO3PV+LZuZssckhMkbYD5hySpX4ScOldDrKUq1bDK6EZ3wTxfNJpBBQc1P5MnSO4OHL5+BVH6MbPST0pCNPF1Va1iw8ZOb4GZYYSZmFLl2DLtOoEyiMheZP4NwBbRsHaLvdtyykpdAbI6LtTAiKcWRG2.luJUh1etAYa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XOm9ojLzUzzZWnCH7hI9K7ShvpZZ6DgUGJ7+j4nO0MP9ZWyyvoKYb8XN35VD+dvEIszzNUsheZNzNRkkpX0Gak80tt56R+EHXa71r7TXyJSgMqNE17kSgMOcJr4qlBa95y0F8qHrdjR12f4QFsaD+Fk11lWUIF9a82P1sTmt
All the best
Oli -
@Oli-Ullmann said in Behavior of the HISE filter envelope:
@Christoph-Hart
Basically, the method works with bipolar freq modulation. However, the envelope only seems to affect the cutoff frequency from a level of 0.5. Am I doing something wrong? Here is a stippet of my implementation.HiseSnippet 1239.3oc2X8taaaCDWJwLs18Oqsncq6aZE6CN.co1IYcCnXHNI1tIXwINwYs8aErRmiIBMolDUVMFFvdb1iwdDFvdA1ivdC1NJJaIk3k53ttDO+Aae+i73c+HOdrcfzEBCkAV1EObfOXYeSRmABUuM6QYBqsqaY+YjMX9RNMvoIiq.7m.36cZI8bNDBUNUpZsw.eZXH3YYaO+y0lYWrfU7m+bsMnbpvERYYY8BIyE1g0moR41t12x37lTO3PV+LZuZssckhMkbYD5hySpX4ScOldDrKUq1bDK6EZ3wTxfNJpBBQc1P5MnSO4OHL5+BVH6MbPST0pCNPF1Va1iw8ZOb4GZYYSZmFLl2DLtOoEyiMheZP4NwBbRsHaLvdtyykpdAbI6LtTAiKcWRG2.luJUh1etAYaAla5RwPcVWwnq0bt1jMknFB0R8oGCMCPhQVT9oUp7XG7qEeVoRX3Fypmfo602pdmCZHNA3Renpy23DCLV5HPgI+HNEWgkeTrRNiz5Q5g3IOwnYnhFnz4yfxUVpRUTTpDouQvhOqajvUwjBGoXWoB1STdwR+Xohk9oRNmVT2tiUldkEH4b8vMFwISjVBpYnjCK4GvDpx4Wf5E1lQAAXLZG.4UdQzgG6DUVD0+MPviwnDOBFMkXJJedegIKu6ZRLYTTJ1VvT64CIzMkbOc9T++yhRrRxr3+9tsqSUTMvIgGpmODnXZ2wtNbBtyy.iJRpCgGioAbu2YvXH5dXFNKjWu2NQ.FOxgyzXIQHSMH6d+Kv9fJm69fI0EuKoMS41a793biwGwH0GBeL4ziaQZzsK3pRcvBjluZZOpXxm9GXl9aPdI8DHdCW7j+fX5txf9NOGDPfN1cdGd+aS5g29S7g264pPW3v.pHzWFBUyNxmR1xYkUGTQh7paXkSK8xqIt7xn20qMj4xYY1lJxMXHctQpE6soj+wZMDTLIzAvUi2dgt3hUG6xB0aGwCgWx7T8pl0vT1Kmk8Vz.OLu3lCHNedjPgI6vi76Iyn+XplrvkPAt+c1XeId1StZvEG5icX884vvZGw938vST6Ri3pQUTx4ksjBoeOofkKqe.nBXGcDjCLM1Ez5JEdymTN2u1A.GngY1u8401gI.Z.FmfoLVbwuOxXyWOjXbWG8ABNyt0Ll++00LFGz9dj1R9.CP0be+XmnHwPbd0KrrzcFDAB2AYqAreBQsUV42WKOz7g01OhxOUzMoai2Wzw6.IWXBgGeLYzh58BGWXxRRuia5MwXZclY1we+zzVLS5s7R9b96Xb1qQhaQHIldpVcl1S2SVp+C2Hc3A8XmHm.4uuiKcvY3lupvO+K+ZMCm3NXxp3VXh5LCW1osSD1tV9symo.yp0Z3J+vUcgLgvkaks5xUbn8sG5qlLxUam8ljXXwrPb8iHI.1Yh.6sII6klMfr6O6T5P2mxauZeCyOgf8LtrS70Lctbtm4AxHESbTKJVOB6rkraT+NXS4t.5kBAvwAmXOm9ojLzUzzZWnCH7hI9K7ShvpZZ6DgUGJ7+j4nO0MP9ZWyyvoKYb8XN35VD+dvEIszzNUsheZNzNRkkpX0Gak80tt56R+EHXa71r7TXyJSgMqNE17kSgMOcJr4qlBa95y0F8qHrdjR12f4QFsaD+Fk11lWUIF9a82P1sTmt
All the best
Olithats also what I've always found....
-
@Lindon
Then we are either doing something wrong or we have found a little bug. :-)
Maybe @Christoph-Hart can help us here?All the best
Oli -
@Lindon
I have found the solution! :-) The "trick" is to load a constant before the envelope and set it to +100%. Then the envelope works in bipolar frequency modulation right from the start.Note that you have to set both the intensity of the envelope and the intensity of the constant to 0 if you don't want to use the envelope. Otherwise, the filter remains open throughout due to the constant, even if you set the cutoff control to 0.
Here is a small snippet:
HiseSnippet 1534.3oc0Y0saSbDEdVmL.17SADzRuaKpW3TQi7ZnzJ0RiINIjHvDSbJTodAZxtiSFwtyrc2YSwTgTuruA81J0Gj9JTIdA5iPdCZOyrq8NahiswP.bt.xbly4Lem+lyYmzNR3RiiEQHqxa2KjhrNGtSOtbul6QXbzFqfr9L7xrPgOIxdMlujB+WD8msaI7r2lFKsq4fVtWHINl5grrl6dJwrJOOR+yAKsLwmvco4jPnGKXtzGvBXxbpsabelu+ZDO51r.CtuUiMbE7lBeQB.w4v0PgD2mQ1k9PhhsRXj0oV0iIEQcjDIMFYM+xBudc1S7K7T9eLKlsiOUsvA0ATTJ40D9dJDqnhZtGy2qceWQLBYgam6XlK0wbEbKlGa.8bGzE0aXmKgo+vpTQ3MWA34XBuZFvaHPxx.RymBoKg63FwBk46nvyYwavg3TWB31MgRJunR+UIbSAvAWtX.4Yz0hfECjn5sqU6F1v+rv2VoB35gH79Pn+9bwN0suiceA2kJaJBBEbXQ0qq285fD4BzT8aDtzADRmPoDARZR7If2n50GreQwt65qzYqU46S8EgziSVMS1C3RogJUXbeFmZ2Mg6JYBtsfqQkBvQB+pt8Q6MfywOgtPkesbkxrtU0boNfGqHWcA6u+N10VnR4A.bwXp18viYxdUaQ.3DQ36Rqp0yMrA2kyh0V..wwnvuyt1hiPiZ0X+E1U+RmLkTzILDtA1dIXyiLXnDKy3aR782AJapVzm.Zwva8PgjtIuJ3W.H7xJ1GdqtcG5dY5xmFMzsUUyQiRvp7jfcnQ4QkTFgT7h0M3iutwrr1M0kXvnfuAmI2LjxOthcTleDpwJkgJfUotB6BYUXc7YdzHDCJjNMV4DcPZ.adSEZhEt9gE9fkP+vFqPjDUcdFb.HFRijLk0asBce3Ryzp9x3UnwOSJB03MKtirN+XQ7yGbf+1O0n2fEMnMBXdd9z1BHEChNpcrT6D9GMhkzvNrWT.qAlWweqFAjbE+6upQbR2tLfBFau9KPg8cza3oPdZKDG3V7H3Bb3WUjOKV0RIgxc6gBDdzhTjzmCV2YvMSjhtcUQqAl7oGqeNGY+obblb+9SELuC96zy+bXnfzNsNDZWcjqhgl.8ufxryfpcX1FpSw753A0zlt12ZsKlTHdIbalzcugiwRCAippjS.Ll0j873U61k5JyA37309wSlNplG+USO9yheBYeptmi9vupdcWQTf88nbZjx2Mp4c9mIcdmvIddmMck.D1FZ4DGJhoNlZ9P6U2buUnxDdQ1SIUfKk4sFXdF7clF8IV2jXaBufxf0EzTKVdsF5eWZUNABBcnf03sYrKXrJemYpd6D+X5SXdx8bLELmbcSxqSh7f3hagDw4F0neNS4nem5jZzu4mrD0QCuYfqdJLoZ49XrCKHzm1epFMFuLzHqKIwWNXVmBnrkfKB2SvYEB5aQkQrc2kVHWZnFzckRXnmbJWowVTeJI1nb6ya7.XnQRTKcWmoxW37ZO09PiWWCmBWa08A1uIws2ooYir8wbST6i25388PqjgkxeYbageuzD3zwdzfHeFniuMBBkO9iQqgGksnwMu4qVpXJ60Z7nDh+g7zYe29aZ09XxvmeBSU937Y5lkxuUQlYG79o4OVS1qz7d39+RFfEmB1J39e8a1STL3igGOvxrH07nuF91g2webyAdwT3dZr9avyRANz6MLsMoLriQzupYRz9zhSs4R5cDpGp4F7cWoTd.EPoIiqC19QTm4w1IABDEu84H8IOXoUcEmbMIwSX184MaR9Adk3E5i0zHxG1f8bXcZwrfe8ivYIryDN1KfypklMRYezrSmN0md87YG39IX3qfqaqmV198+3xaIRjL9tsHPeJ0a08vjfNhjHWJfXNm5qdwUqRp2FMccM0ZEb5P4d5E+G7S1lNp0VYa5zey2ImQ.wMR7T2zGdU0J4LZJfcy0+AhJiaoVaejmqU8Ledrm55VTUGQv5Sqf2bZE7VSqfe0zJ3smVA+5oUvuY7BpdXk6lHEAo0IHTq1qpegbKqz2VRWxf9e.AiuomB
All the best
Oli -
@Oli-Ullmann yes that does seem to work.... its all very strange in there....