LFO Modulator
-
Alright sounds good. I'm still semi-new to this & learning how to write everything out as far as scripting goes but I'll see what I can come up with based off of that. Thanks!
-
So now that I have this, Modulator.addGlobalModulator(var chainIndex, var globalMod, String modName) what exactly would I want to place inside of the () as far as actual values?
-
Here's a snippet with a rough example for how to activate different modulators with a combobox
You actually don't even need the
Modulator.addGlobalModulator
if you're only using one modulator. In this example, it's just bypassing the modulations that aren't selected in the combobox and turning on the combobox selection.HiseSnippet 2174.3oc6a07aajaEeFKyTakUoYylVrawFfAA8fBpqWMJersosHxeFXT6XEKmrEnsXA8HJIhLCo5LbbraZ.xwdq+qz+DZ68BTfhdn21ysW5wdq8QxYzvQRQdrps2jZMGDDej7weOxG468iiTyPtGIJhGZYu39G2mXY+AnVGyD8VqGlxr1Zcofc3si8wBJmYs5w8wQQj1V11kdrrE1KNuk54e8nUw9XlGISjk0y4TOx1z.pHSZyF+Tpu+l31j8oAFs9dM1xiyVi6yiAzTBUypO16E3tjmfkMaNjk8U1nMUvCaIvBRjk87qxaebqd7Wxzs+4zH5A9DYAWqVfhzh2j62VhX42sVqG0ucyTqNxxxdglYyAkzyA2DsCsMcf7r4hqqpvIqGlyG1yMI34Nkvy1.dyqg2GhZ4ER6KxpQhsqh1hIHgcvvRfIrzs0ZtacEzZbnELwxA3WP1LDJLnGUePsZK4b+Z0tyOpR4Jk+rOyoEXIDmigECmt97Cv9NAZ2..VNTlyg3PJFLmnJkgksHgTfy1at6Nosx04m3nbkVtKQLPZ0aCswIqQ2dbCXHwiPOjDVjgrENnuOIbSpOXJfdeKi5vMSMtYZ4KvGRdLg4dRpYj1Md8Tuf5odd8nmGHBm03AGvWkejCUPBxYtqShDTlZyXDn6zUTP6Pe5yYPgp21rQJEaJX4HBzDkhu8RNoSLNZj7KXRj0gGF3.vywc7hqmHNAzUJSY9TFwoSLySNFNbl4HJAYH2upWJBWBLE+XxcpT9UUJ6.OfY2lzmvZSYcgNqqdIGLnsCgMSY9ANXVamCTd2NbQORXjVAQujJ754TU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4OMLjGE0ALGkthLqpYbXWySTg0Uxgjvn7xf0VyUU4B0yhHR+IpWpCPVqUiRs8wJeJ3jWUY2gJWenx2cnx2anx2enxOXnxedVY8D5N39ROC4EjNDGtEJ1EjBJnIFLYicJqR6NP4ZI4S91noClyU3xXzNgn1W4+KRC5+cVIkJFbOg7dVLEisnxksMXGB6WAI5avOYmGHMG91gy386wYTu76K.+7tcIglndrlh9hbLSdYOhOAxSISz2sw1Px53v7a2OUyBtEeVXRqTeLRCWG4QcNmS7HcmEQ9B9chrXZ3xlb+i0NyIWpgDPeSTtKVbBwLsrFNueKqe6eswSMcDx6D+wMdZL12Xt+U+ieyJqR6y8wgEZc4rgB4jbd91nbIedw4wehKaI7++zDVjx8jOW95cXYukDkEbCzv2L7IidHhcRLRYCff7BciUB0Liffkqwgv7pKG0xdoIcOCObHBjmYKiE+H.oqpy6MW80mfR1Enn979CtuF5ouOAV8FCGXzCEuiC1O.oRc0Qxz3qKndQPiyKUUfsk7c84MkHo2ni8b9.uCey3BQ.IJIjfCkLmPuodB8pH4s6ndIxp4xuEx7N7IgidqVm62E5tdB.B.mLVTedDw0TyCUWcy5VmHhY4atVTtVIMuMAyy0jdXpv5lBAVK4TFTNml1wjt1W8H8sp0h.VS6ci7.iUElwjqYreD4KjuqBWyNlItto3guRXTwna8VYRcBgOQyHLcAQXpBJ8sKOiwzLFSWtXLccT9eYEmqTldym7m+S+wYTlNaoL8QnQ9swbRu64YbllwY5R.mIYVQG8N.bufeiRmBhD0mQjXFQhYDINyIRTeFQhYDItjRjn9Ew6d4uczee16d47hHQ8YDIlQjXFQhKmDItHFi.rWH+K8z+AMT+oLUR.6lo9yetHZGYYG2z+PFHTskqYE.ol9kddxfeeeX9Y78o9Tzm6NE84dSQet+TzmGLE84ymh97ClXejrBVIVvCz9+fflanOc2dvOdY6RV+WbHM3vH
-
Yes, thanks dude. The visual helped me understand better. Just one more thing & I think I can piece it all together, where would the knobs come into play with this script you wrote up?
-
@D-Williams23 So what are the knobs controlling exactly? The modulation intensity? The lfo rate?
-
They're controlling the Intensity, Rate, Smoothing, & Fade In
-
In each knob callback, just set the attribute for each respective parameter.
https://docs.hise.audio/hise-modules/modulators/time-variant-modulators/list/lfo.html#parameters
LFO1.setAttribute(1, 1000);
The example above sets the Fade In to 1000ms.
-
Yep that's it, exactly what I was looking for & Right on time. I'm going to spend the rest of my night rigging this together now thanks for the help!
-
You bet
-
@Lunacy-Audio So I got the LFO set up how I want for the most part. Now I'm stuck trying to figure out how to link another set of knobs serving as a "Mod Envelope" ADSR section, to control the Pitch, Filter, etc. I can't select the "adsr" from the global container?
-
Unfortunately, this is a HISE quirk. You can't add Envelopes in the global modulators section (there's a good reason for this), but you could add an envelope to the Pitch and Filter modules individually.