Global pitch modulator problem
-
This issue is still there in the develop branch. Here is a video comparing the behaviour in Kontakt and HISE, with accompanying project files so you can test it yourself.
https://www.youtube.com/watch?v=c4I1XZYKbpg
HISE snippet:
HiseSnippet 1149.3oc6X8zaaTDEe1XOzDZaZQzJPHPZufDRPqrcSK+4h2DG6DKrarx5jhDGZmt633Qrdlkcm0fOw2B9lvY3C.G3i.G3C.W3L7lYWu63TSv0xIMAXOX44MuY2eu++dSuHgGMNVDgr1n+jPJx5FX2Ib4vFCILNp8tHq0w8hnwTIZmIgj3XpOxxpzdpcs1nLBdBe+uu9Nj.B2iNkj54XAyi1gMhIKn1y4yYAAsH9z9rQFbukSaOAugHPj.HoDtBJj38UjSnOlnXaMLx50Z5yjhHWIQRiQVk2Q3Owcn3a3o7eLKl87.pZQUjK7hRI2RD3qPrhJpwPVfeuoRbLBdo8Jj+Rox+cvcY9rb5E5gaq2vt3Dl5Cq0NK3U0DdUVX3gLPW4TzAfP3mDPjyhLk4HaClfOCxZykTdLSNoPa+60ekB22.2iI8FNe7t1bvKXnNuwalw+l3lCFP8jEfsLt0WbwZoWOEJuCdu.wyIAEJPAWBnhFow06kssc9914LT8uMTEg9kEMTMbgCUsJsvZj4GZVYdglk+WQn4a9Blo3W9nyRKlBcNJQKCXtYJLw3NsNHSqA+q.XU+mAVqH5WmP4dFDenixEosgG1cbdBYLcfHZT5GL2MyoC8D3CY530mNJT.0a7LI5NRHjCY7Sl0wi4zQHBaxIfn6axeugjX5ACFnpQY3m2HIVJFMEK5hHtRZ3tDIAY8k3Gs08gmAen52OsA7yCNX0rFs5LeqsvdYJKYtISYSWodYUVburLX95XHaTrjvkZ.d87kUu.c+QuTpubm6kS8c4oDZo+aVB8PQhDRZzkHiXeKjm6wIibgZTdT.IbNM.9PXq0PpipWWQsVmugx80K9S3Iaypp0VYaVc5llh6cSE2qiUYXzsLqE16hmlwwdOJTK9EyrdtWO9.OI.g9QDdbnHlV0vq8GO0d0L2aWpLgaxNBkRplIIk30BDOC9damoDM371N8H7YdYv5YdScUlI8xe5O9fetdZlcWJHM9GD6ABqR2YFx0KIHl9Dlubnw68WMHWyj79jH+SWZ47oUk+eJhUYEjakhwqg2d+ccOLKcm9+1M4ioAhPvgzDacEbQ3PAmMio9PJjG3jSny3AMWwXaoDF1rQRzXZg+3uUeWpGYhIU8SJylc6jRoCEflIi6CFkYCkfWWNAmuywE5OYlTAJLGPgdYJH01oom.LIzym1CwKnqwMwoBosN0yk6RiaNEqoVjK2f8FXsawUA85svYNrWITrahyhktJnZWAcysZFQL6J.e2rgVUptiIQLns8bTqAr8zoZUbXmwRwjj0NS7+riN5GpuCKTDPhTW3yQwz9DMVUW9yXZjL8bZhoSqAitAyOvgtJUJGqO5rt6iO6TC0dtLMwknqK5rKoC8XYek4hAeKLz2WMacvf8q9YatHFn3h3aLh3EIdJzVsLRDnB4WWSAjat9102.2Us1tJZLIHQeEQUteEzHnO0m54o7ouGnel+YpsDm4AKwY1ZINyCWhy7nk3Le7RblO4LOiZDgsSjhQo9+.gdMSyDZke+WVkP+k4R85Z
Kontakt Monolith: lfoTest.nki.zip
-
So we partly solved this using a scriptnode LFO. However that only works if the pitch mod ranges is set to -1...1 when it's set to 0...1 the problem is still there, that is when the intensity is at 0 the pitch shift is applied almost as if it's a constant pitch modulator.
Here's a snippet, using a scriptnode LFO, that demonstrates the issue. I think the pitch lfo used in this context (which is a common context) needs some special handling implementing in HISE.
HiseSnippet 2684.3oc6astaaibElRxirksSxtqSCJJRATA5O7hlHPRcus.Iw2BL55D0Huo6+LFSMxhvTbXIobraQe25iPQeBJ5Svh9BzdlY3kgTTxTJxd2ro9GFhy0u4b+b3vdtTChmG0UoPkSuwgnTXaT+ar8Gs+HrosxwGnT3gnSvd9D2phl16FGrmGYfRgBkdMqgBUVSg+22+h8vVXaCRbSJJumZZP9Fywl9ws16k+ASKqivCHmZNVZzMd4wFT68oVzI.dJgTUbvFWhuf7FLaXEQJEJe3.SepaeerOwCFydzA2zeD8C1hw+dSOyysHrGz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XIlSykXNsVh4zdIlSm4NGlK5fRmxzGgF5cnPQsPT0iJTR4+AIsLDK
-
@d-healey Even with the pitch mod set to -1 to 1, I still don't see how you would use your scriptnode global lfo to manipulate more than one modulation target. The only way to control the amount of the modulator going to the pitch modulation is with your value knob which effects all the destinations of your global lfo.
It would be great to have a intensity value and a pitch amount value for the pitch modulators. Right now I am just changing the pitch amount which is not the same as controlling the lfo intensity.
-
@crd I can control multiple targets, that's not the issue.
-
@d-healey I see the issue you are having. I think I think the pitch modulator was intended by cut on and off at the modulator's pitch amount which is not the same as changing the lfo amount being sent to the modulator which I would love to see implemented... I think this was how it was intended to be used (?) :
HiseSnippet 2853.3oc6assaaibFlRxirksSxtwtAEEaATA5EYQSDHoN2Vfj3SAF65DsQNt6cFzTirHLIGVRpDqcQuq2zWl9Jz9HTz2f1mfE8En8elgGFJQIQoHYroY8EFhyo+u4e9OSNcbI5XOOhqTtRmOxAKkaWT2Q19CNbflgszoGIk69nyz77wtk4McvHGMOObOob4J7RZC4JsgD6ue3YGnYpYqiiaRR5BhgN9qMrL7iasyy+JCSySz5gO2vRXz0d9o5D6CIljg.dJfjkbzzuQ6Z7qznCKORJWwi6Y3Sb65q4i8jxswAjdi5Nf7da93uvvy3JSL8AEotvBwa9DhYOJhosJc3.CydcB22dRvh1IlKTfyE1GclQOin1i4FeFqixwyPjejKeR3UHA7TlF7RAR4DfzFbH84nt5tFN9w8PwyNnSsgCm9Z.aWDJ7wJk6uiNj.Cv1uhk1M3SbgGhlviaHK+jxv+9xeW+g159FD6xD6WQ7wu19we41e+1k19Osc4w6pe+T6iRFWhoI1M0tomztyZhO1dn0UX2mT9cZlCwQCD19I4onrwS046ZgARrO01v+0NX6oIHHEvpn7+.TAC0mw8ue.2uqoQOrqjAvj2D8U1jqTjX.VTlW5smdjluV3x.qHPEGrquAcCj6H76.cB9gZIzQXua7INrwZ4ProzO2ClKQuE3D49K.sFQ+wQvO77GQYCEYCPxxnWOSbGhmAkMKnj92.cYmtFeGCw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yLr6fhnOV.hLO4Wuv5M4yRxhqshvOKS528YJlxAdfN3TPyVfPp7j0eYkvV1ERaERdZQxGa23Jvn7IVIX1IJUTkepFLeDTCFvXt75HzzoV1kUYPgAuiBk6h.XBpBj5OdKQjxriozAqciRpNqn8rXPeiE80Cxe6jILHvewWSofPEouAMkweAZsG+EnIs5R7cFbNcPiYr5.sK+bm2yOxJL3GrF1zYKerrzIhjeCQ9173wWj7K18GdV1b6k529xB6+StRxr.1X7rGxH54OjMjmhlov66NgFoRZtqGGtz6DvsSCwo8dFi33+m+4YW8Ye6u54KMtybHFSJbzcflSlEN1jknWsLxfCJi7pAoQwRjkfWhBfnI+4wwadQ7VLNBt3HSS.5LQa0UTfSRohsDAVunfakEH0RYd5.B4FKM1Gm3RcI.VIei3E9z7aD+Mjg9Ptjmo46RurBzbj5B9m0C+3N8ByPJ3Y4PO2cw18XO7eg+B5Tg9btfNUB6Tb6de91ExhEhAkckoXa1Gwdt7eP6c3xuDCQmN4GE7Z+KN+059.4O2Uy1yg3kXg6hsLNmXS45wM9VOL0VNuX1BseHQyM0t9gmcBrIScNc07G5xDIC+XZEDA+ouD903kToP1f6b9L3KEhwtLavGGTHCFFeHXmhcQeBaMob8YDaR3WVc7g9avf930WSctEi8T2PA11iZY+mGlFaTS+5my+JeY0uasek.l040OOvUD+Z.7+GWtnr43X0vaKEdcK3W.jYbcKlycFat3+.CGhoFMsv7fgty0XXkN12ANi4yi0XT0jDCJ42Oq6QzucN2DjUFm6SM2r2EzvRS2kbYvmNCU5bKVKv91lcaiKAo3.OWN59cxizj9YBbotdXwEReNpKwbptDyo1RLm5KwbZrDyo4RLmVybNTW2AUWkpaBMz4XtRatnBLkqfz+SqUEX1
-
This is the problem that keeps on giving :p
To summarize, using a global LFO connected to pitch results in the pitch being set to its maximum specified value when the modulator's intensity is at 0. This prevents it being used for anything where you will want to vary the LFO's intensity.
A workaround using a scriptnode LFO partly solves the problem but it has two drawbacks.
- It will only work with pitch if the modulator is bi-polar.
- It won't work when applied to other parameters such as gain or group xfade because when the LFO's gain value is set to 0 it sets these parameters to their minimum specified value instead of 1.
I've made a video demonstration explaining this in more detail. I've also provided the snippet I'm using in the video so you can test for yourself.
My proposal is that we "fix" the problem properly by treating pitch modulators (perhaps there are others too) as a special case where the intensity value from the global LFO affects the pitch modulator not from one end of its range but from the centre value. It should also work in unipolar mode as well of course.
https://www.dropbox.com/s/hs4kmwbly6gjqpj/lfo-issue.mp4?dl=0
HiseSnippet 2131.3oc4ZssaiiaFlxNzSblo61cmfEEEaA7E8hrXm0vx4vLYaARlbZfQyAi3roEsWDvHSGKDIQsRT4PKJPun22Wo9DTzGgh1Wf4Mn8mj5.kOJ60yry1UWDXR9Spu+y++Toc.yhFFxBPFUu3QeJx3Y3NO5w6ueehsGp0Av7XmdLNMji16QeRXHsKxvn7aDKaTcIj74s6rGwg3YQylBgtjYaQO110lmMa6c+M1NNGQ5Ruv1Ui5M1skEyaelCKBfRYbCjOw5VxMzSIBxJgQFUNrqMmEzgS.v.zrGq6ic5yt2SQ+k1g1W6PECLQcfCRMMZ+91NcamvlgH3fZmwzkUL8p3Sr6ZmNeFy+SkKTKaG5x.iRSBRly.jLzfzRJH8I3NVA197rUD34o3VdbZPOBHp0ghhVjweGuOCHviW2kbK8n.XP5FVaqFMdQM3OewupWjmE2l4Ui4cJnaOyasuXk+zJUW4OuRsAWpWuQtl30DvbbnAibYg1MXRabMuH2qoAun1cDmHZJg.6mWlVoXxTKEWqQHyqkmM+LeZ73iXNcExJwuGVCfhEavu9lVGP3DgRIdNfNeZ.2V.GiCn2AV0JUTU7Azva4LevtdH8GX4v5F4P34MmD9MwK.xib5PghxKzl+nte0f1XKMd4QCM4wT31BB2OA21la0ez3szHvKH0dWi2XO1eB9vd8nV7LvtD9ne2DcOW3PYYET94323vtl3jI.A6F.UTkK6uHd4ZoqWKk.yIDS8eVzXp9ENlpQ4EU.qkdWEC88p88yGR0D98jGoQIMH+QJHiwGezYwRP3WYfzbZfDgNJf9sQT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r1ooyQypSbIcm3CgJi5BEgpZ9.DWiOCQkwijpxP4EHVdmao2qTuJBVugYi0AB1d6Wsw1urgJX+x3Wy4DnPgzn7MaDGlu41upQy0a1LmA8D.VQywTHbUEeN0gp4aAoe1LN8Sylquo4K2n4BKLPd22QT0ft2SUv64lltPqJ47c9HL361udxZyjWSob1AFyakBCDERO7Qt7oo9.4XfOMshsz0msDbErZqJEqZKPsT3psFk5EsXjoSLnrlTsBl9f+.RzmpLIjKLi1C5QQKMTIu6qk7dC7IR6NYIagfPXMaO+H9KpAYW5U6qT8gEO5Ki6JKkMRNxmfOfdczMImoryqEpM4SDAB1dqEPdrwCK8W6zf3fUqTv7GirumYNSRi5aMe79dL1stDYGuuS+TBS7t4K+iy6l+bVDG5HBb1BrePzyXjaGv+0J4NCBSpiIdbiDO6NTutxA+W3IdQSwXi3EMSVDM78z9TbGnAG4WMUxrelbbMw8YV6MTn0mguoIsa5+u7W+8+iE+M8elEGd8WDP7B8Yg4N3NTW6KXdBod1jeSHUTGupLd8qlkQBF4Rucmi.lbj6oCgGEHMIStiFMSvxEVuqeES4+pYZz++seZhu6eovxECtS4xrqlfwNxlMNLt2CIF+THnUORjCOY17F4mv7XI2dWlEv4Tv47laDYCxv9HYn3hd09rBIkalN0ubW0cII6Td9jEy9Wlej5qeVbM5pKZ9Cpuv6xI2Ut5icMg6JO9qgMO2U9tqu9+YGHJxEDIVEDbGjoSQrbxzNpzyZ+qmzGG8qmxc2uvzx+PKmaNqxpuOTuvy+Zm8r8YNDw0dURSSW5GpZ5eLTsx6i2gKwJfcUbioBqykky.7sm7edqpP2Ov3Zln6zq1VbYvWYYkb4oidOMmi8r9brmMli8r4brmsli87x4XOuZh6QTzSbSyBeSXh1GpbZMR6m2nL5+AQwsss.
-
Why don't you leave the intensity of the source LFO at 1.0 and then adjust the intensity of the global target pitch modulator, then you get the desired behaviour?
-
adjust the intensity of the global target pitch modulator,
That was your first response in this thread in 2017 :p
Then you said
Now I get it. I think I need to change the way how the intensity modulation affects the intensity. Right now it just "modulates" the intensity and for Global Modulators this has no effect so in this case I need to apply this directly on the actual modulation signal. Does that make sense?
Then we get to today :)
-
You missed the part where I get it :)Lol forget it, it's the same thread, I think I can scroll upwards myself... -
@Christoph-Hart said in Global pitch modulator problem:
Or add a intensity modulation to the receiving modulator which might be even cleaner...
I think that is the cleanest and least intrusive solution so before I implement this, please tell me this would fix your problem.
-
@Christoph-Hart said in Global pitch modulator problem:
please tell me this would fix your problem.
I'll try now, but I'm sure I attempted this and found a reason against it.
-
How did you attempt this? It's a rather complicated addition that requires a hefty redesign of the time variant global modulator.
-
I probably did something like this:
HiseSnippet 2423.3oc2ZkzaibbEtZJUThZjkimQvvHvAnw.efCrLAapkYjMBDGsMfvZgVTihA7AgRcWTrA6tKltaJIZCC3C4d9CDfbOGxobN4ZNleBI4Wv7OH4UUuUMWaxP6IdzAAUau56U0a46Usp6xzoddLWjRgK60ghTVE2nmieqCZQLcP0NDorF9ThmO0UMnq860g34QMPJJK7JdGJEVDI94M6sOwh3nSS5BgthYpSOwz1zOo25U+RSKqiIFzKMskl8VUqoybNfYw5B3YAbYTGhdaxszyH7okCiTxejgoOysgOwm5AyYelQuFsX26DL+qL8LuwhxangZ.BJnazAsLsLpGoqdHPP0Sz7EBz70wmZZXF2exIvuPLfZxJjOCTxMNHoMEPRQBRKF.oO.2P20riexHb77HbMG3BoIANpkgRvbQ49CJ3CXvLb7KYSZSO1EZDuhh6Tt7Fpvud1WrxJvwsmu5cDWUalg5uVUb0W5Vp+oLitVDPsJ9zWYwtgXoxupTuh3ZRb7UiGV6obwX5XY5PUa10Q22j4nxb9RG1MZbP3xrJpyr6vb.3rArUVcoOakuakBvFVxiJvkimoeuhAC8Eq78f.ifOfjChVbwmJD5SeFeYgh9.hk0MfMRwz6HHEIrbFymdtSQwttx2uhZ+C0r4PGKTVVT2gNL+7vcbKrnSW6antx5LehvcaZCl7YyfQO3HQZhLmZNl9m2gF19XlkA2Pf+2CZdgBOSg+500Nj3S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8W3RZ9uS8oFdK9k7R8P0EhvXCQgDGEVWg.iOFBHI9XnQ8l1v9TlCK5k4Rt0ufBNj2dKOReB1GpBERnU5SFDQkLtqOoZv6DIpBd1NKl9+aQF580GEx+N3Qjeq+EXWN5suC9fUi7suyzmkdhIMfHFWRDXjOg6frWASVzYbURxYh2XbeXyOuuuj0b617mC4MSYwUHiWip3w+uOzjw+9lcXVD9yUkS51L2OWtMeWkgwOE6gMQ2kccXQibKvkE8.5si3eHvBPkIPaUMzcxLg4OT6055QOr4vWSkYXMaNCqYqYXMaOCqYmYXMOeFVyKF6Z3DUBKnk6+AcT+n.GSk3ZsUV.8ekn1uAE
This sort of works for pitch but it's a bit fudgy because I have to set the knob range to cover the pitch value, 0 - 6 in this case, but once you get down to a lower value it's hard to hear any difference because it's linear. Really I want the knob to be 0 - 1 so I'd probably need to use a conversion function with a suitable skew to make it sound right at all values.
If I want to use the same modulator for other parameters, gain, xfade, etc. I'd have to script conversions functions for each of these too, or use separate knobs on the UI. I'd also have to hard code their intensity ranges. Using the global LFO intensity I could just set the gain mod's intensity slider to 0.5 and then changing the LFO intensity would stick in the range of 0 - 0.5 but doing it through scripting I have to hardcode the 0.5 upper value - or add additional UI controls to hold this value which I then reference in the script.
Another solution is to use multiple LFOs but then what's the point in having global LFOs.
I think we have enough workarounds to get a working result, but it's hacky.
-
Here's what I think is a workable but hacky solution. It includes a skew factor to make the pitch intensity behave in a more useful way.
HiseSnippet 1526.3oc0Y0saaaCEVxNrK1cqXcqXnXXCPqXW3rk4Zul18SQWbiSbPvRZLhRyFvtnfQh1lHRjZRToMXXOO6t8LzGgs2f9Hz2fsCknrnRbbT7RR67EAlmeH+N+vy4Pm9gbGRTDOzvr1tGEPLLeWj8QLwntivTlwFqBzQdC3BRjvXkiBvQQDWCSypqKYaVaNijOud4UvdXlCImjgwdbpCYSpOUjSsemej540C6R1k5qI8Rc1vgy5x83w.TphZYDfcN.Oj7DrTrJHCyqslKUvCsEX.LfLqvcOxdD+4rT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RdIhsfDjzXy7WPOXolvmAeYyrO2a6we865l8sYfuwE2iKpT5rLYjLe.WPjyeV1U78BIhGmO8+.DO0NRUKUGoKb7N6cmtXfxN7XAbOEdpPHElfA8jXeanUfCAPBiQ7fCBYVQNMT55Vx0IWwIL2jE+C7QwrsbsohY6LlFmrB10Q1PmsjWglXreTxZK4Mcq0IPOuSVM6Ruu21NB332MDyhB3QE1XahOcWXTvHchOMhHS92QlIoSuKGGNQVud4dfQNQcrwh3vjTxG6yiYhBofUKcbWuVTw4C0j+prQ8k9PluAmCtPo8ZYXzl5G3QVicHwCdtUBF+.38UCvwdhLpESr2hy3Ai3LZgNn6PfKjCGRB0w9DMnGKDXmCxobqN6P7HX8L3OuylPlGND7SjYzWb9+MzlX751nT3ZIuMZ8eItcgWIVMn9mnF2SBv8vgTLK+GIS8SxpR4N6tGPIhcwIfRJvgvquSENgX5TLvHMvf9LhS5KAWbZuC36O1vdWXgu2lafdloa0JYbq9Xve1ndEZ.2CGJen5oDCq71bL7MwSduJFj3p3L7wNg7m4j9iuIy0lOgBX2rj+aH0PaIWa0N62bCgZ0rk7mzg9LGGoK9qfJMSVmudFz4dyfNKMC5b+YPmGLC57MyfNe6T0QNOxiigGJlVRBHzeszKlliepoYUi+Eng+wAJ
-
Not to derail David's thread but I just want to chime in to say I would love a better solution for this as well.
@Christoph-Hart said in Global pitch modulator problem:
Why don't you leave the intensity of the source LFO at 1.0 and then adjust the intensity of the global target pitch modulator, then you get the desired behaviour?
Changing the pitch amount is not the same as changing the amount of the LFO modulating the pitch.
It would be great to have .setIntensity function the same on the pitch modulators as it does on all the other modulator modules where .setIntensity is setting the amount or amplitude of the modulation. I don't think the issue is with the time variant global modulator but with all pitch modulation.
-
Oh boy, this is so annoying, so let's sum up the problem in a novel (maybe I'll find a solution by typing this, wouldn't be the first time).
The problem is that the way the intensity affects the modulation value is fundamentally different between pitch modulation and gain modulation and there is no "clean" way how to use a global LFO (which uses gain modulation) for a pitch target if you have already applied the gain modulation at the source. Also there is absolutely no way changing this without breaking every existing project.
So the actual problem is the LFO intensity modulation when you intend to use the signal as a pitch modulation later on, so the only way to use a global LFO for both pitch and gain is without modulating the LFO intensity.
The advice I gave earlier (modulate the target) however only works until you need to modulate the intensity (eg. with a MIDI CC modulator).
Now we always have two solutions:
- Fix / add it to the modulator system in HISE
- Offer a solution that works in scriptnode
So let's talk about this first before we tackle the actual problem.
If we fix it in HISE it appears to be a more "clean" solution, however it will add overhead to all existing projects because every time variant global modulator will get a modulation chain. These things can go into the hundreds for big projects.
If we fix it in scriptnode, we can leave the existing modulators alone and offer a narrow solution to a narrow problem (plus we get a few new tools in scriptnode along the way), however that means that people will have to go into scriptnode for a problem that appears trivially at first sight. Another thing to consider is that currently the usage of any node that connects to an external modulator cannot be compiled and must be used in the interpreted graph.What do you prefer?
-
@Christoph-Hart What about a adding an additional pitch modulation type that has two parameters. Regular gain style intensity + a pitch value. This would (I think) remove the need for additional overhead for the other modulators, not affect older projects, and wouldn't require the use of scriptnode.
-
Ok, I think I finally get somewhere here.
The LFO will now work as expected when used in the pitch modulation chain. The days of having a weird constant mod that offsets the pitch modulation is over. The fade in and intensity modulation will now start from the center so if the intensity is modulated to zero the pitch will be exactly the same as when you bypass the LFO (by the way this also affects the stereo FX modulation which is basically the same problem).
However this will not solve the problem we have with the global modulators, but at least it's a solid foundation to build upon. Now my suggested solution is to add a new mode for the global modulators that can be switched between unipolar and bipolar. The default will be unipolar, but for our use case, we'll switch the LFO to bipolar and then all our problems are gone. The only thing that will be different is that now the gain modulation will be bipolar, but that's less of a problem than having to correct the pitch modulation.
-
@Christoph-Hart said in Global pitch modulator problem:
global modulators that can be switched between unipolar and bipolar.
Will that cause an issue if you want to use the same LFO for both gain and pitch?
-
It will be different (not sure if it qualifies as "issue"): if you set it to bipolar, the LFO will oscillate around the center. In gain mode the center is -6dB (0.5) so you will notice some ducking if you enable the modulation (but the ducking will be constant if you modulate the LFO intensity so no weird compensation hacks anymore).