Animation not working in exported plugin
-
Hi guys,
Got a big problem that I can't work out. Can anyone please help?...
I have a slider linked up to an LFO modulators amount level on a simple gain module.
In HISE, the slider animates perfectly moving up and down along with the LFO modulators amount, but it doesn't work at all when in the exported plugin and the slider just stays still.
I have a snippet here of a really simple version of it. Can anyone see what I've missed, or see why it wouldn't be working the same in the exported plugin, please? It's the final thing I need to fix now before building the finished product so it's mega frustrating.
Thanks all. Snippet below...
HiseSnippet 1543.3oc2X8zaSbDEeVauEhotEnnJtToUHNXDTicB+onpJ1DmXjEIwVwNgVwAxjcGaOM6Ny1cm0P.gTOz6sej3C.G3iP68dneCZeyrqWuaxRhwEP.6AK+92L+l27l26MSWetEIHf6izVn+AdDj1mq26.lXTyQXJC0dUj1k06SBDFs39Fq3DRLVmxfeZ0wnmC0l3arLi5hV4.ObP.wFooU7dRK0VnDR88O2cErClYQlxBg1gSsHqScohob6ZdepiSKrMoO0Mk12vrsEm0j6vCATVTuNxCasOdHYSrTsB5HsOaMapf62SfEj.jVoU31GzaD+wrH82gFP2ygHIZf5ACTD6VbGaIhkbQMGQcr6NwaDfPZ5cm5aJF4atf9FTaZB+o9nypDXL0hz9CsBGG7ZjFd0mc3okBdkhf24z6Y4S8DSkHw1YzayDD+AXXKHMrhzEU3aJn2jCZvD0bw6SZ4CDIVT8V0qeMiaVu9U99JkqT95WG1822XKhsZaGVO1QwCwwBBtwNbGUzwFb6JkgMNHzYL1WxB3D5fAGQCievPEjUaHQjvs5kxnykhlwoiv8Y78jVNArfsM4tdbFPT8RJoGwFAn+Zrg.BqY4S.3JCs76r2OSrDUkJKpEPDJlMwNN6AAVUGDxrDTNq5UpT9YUJa.exgZLLTY.nB.g99vzuNYLwQMdRsi9UAH4nuCFN0TcrT5yivGLoBrezzVcIkqcxjZvYaxEjNvrW9YkWn7yKabXQCFjqLoawm63.CYdhilriwvprP28H9WCVr.dSTDBtxF8p+5idSe3xJZWJkhbVaFUzwivdcwzn3sVH5tPLp.UEpX6uHN1NJPCQgP3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2r4HcYsI07xsr1DgSKq4hs74OxJ5kojmBNshC3wXp2wdA8MjzFIOIktd8Z0QtPtzGYYI2n9VvyluMKNG1rzbXyMlCat4bXyslCat8bXy2cr1HKisbHbKtnCw.itqEc4Jsj6AB8u7e.a35s.A
-
Bump Bump Bump
-
@SteveRiggs I found out that it works if you read the level of the gain modulation instead of the modulator itself:
HiseSnippet 1541.3oc2X8zbSbCEWqs2BwTSAJSGt0cX3fYfZrS3OkoSG1DmXFOj+3IqSnc5APYWYa0rVZqVYCAFlgC8d6Wi9sfO.bnm6o168P+Fz9j10q203lXbCTf8fG+9mzO8zSu2Spkf6RBC4BjwBsOHffL9XSmCXxd06goLTyUQFWxrMITZ0fKrVwe.wZcJC9owVVN9TOhvZYFsOZkCBvggDOjgQ96przXgBH82ecmUv9XlKYLKDZWN0krNsOUNlaK66Q88af8Hso8So80sa5xY0497A.JyaVEEfc2G2krIVoVNSjwGslGUxENRrjDhLJrB26.md7GwhzeWZHcOehhnFxAFnH1M39dJDq3hp2i560Zj2HDgLLaM12jOx2bdyMndzD9i8QmQKvZrEo8GF4NL3U6ngW0oAOiTvqPD7NqoiqfFHGKQgsSY1jIIhNXXKHMrhzEk6yyYVmCZvjU5i2mzP.DIVT9lUqdUqaTs5k+pREKU7ZWC1822ZahmdaGVOdQwCwwBRt0tbeczwFbuREgMNHzYHVXoBJ.VC7wRJmY80V5nrJcIxXtbQ4KpTxZrVWLZRGOH2iw2qFX6H7BVWm2Ofy.hxWTKM1lzVIAKVi0EfYEWAAvrJ9Rr0deOwUVdj5xJgDoVPcru+dPDV4NCXtJXT9xkJ9zREsfO0vMDFtrqFMNFHD.JVmLj3qGTk5ZDoF3cwvImxCU7el5GX1jXQz7UdIsyczrYwYaxkjsfos3SKtPwmUzZRQc5LUYJuhf66CC4zDGMYGhgkYC5uGQbUXUBnMQQH7Ja7q4rE+5FsIkRQNqIiJ2Jfv92Nzgh2Yg36bwnBTUpitOcbzcTnFhBAwmvT6gQZ.Gmw34+R8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wk05icE7G3F8xTpSAmTyA7XL8KYuf4FJZqjmjxzrZkpn9PtzG35p1n9BvyNcaVbNrYo4vlqOG1bi4vlaNG1bq4vlu7PsQUFa4Avs3hNDCLZsVzkqLRtGHz+x+.Pxy4xK
But for some reason, it doesn't work with the modulator itself...
Maybe @Christoph-Hart can enlight us on that
I'm pushing on my bug list... ;) -
@ustk Awwwesome!!! Thanks man! That has been driving me mental for months!! It was my third workaround as well after 2 other methods were failed attempts, so I was starting to think it wouldn't work at all. Seems it does though. Thank you mate. You definitely deserve a pint :) :beer_mug:
-
@ustk Ah, I celebrated way too early there :( It works great on the cut-down snippet, but in the main project, I have more than one Gain Modulation. How do I tell the code to point it to the right one for my "VolumeDuckingMain" module? , as they can't be re-named
-
@SteveRiggs Ok I found a solution, but let's grab the pint before!
-
@ustk Haha. I'll get you 2 pints if you can fix it! :beer_mug: :beer_mug:
-
@SteveRiggs You can gather the modulations with
.getModulatorChain(0);
:const var SimpleGain1 = Synth.getEffect("SimpleGain1"); const var SimpleGain1GainMod = SimpleGain1.getModulatorChain(0); const var Knob1 = Content.getComponent("Knob1"); const var t = Engine.createTimerObject(); t.setTimerCallback(function() { var v = SimpleGain1GainMod.getCurrentLevel(); Knob1.setValue(v); }); t.startTimer(30);
-
@ustk Ahhh! That makes sense! I never would have found that though! Thanks dude. Huge help! I'll try and export now and hopefully, it works. I owe you 2 pints! :beer_mug: :beer_mug:
-
@SteveRiggs Slurpp!
-
@ustk Haha
The first export has worked perfect mate! Thanks. Gonna try the main project now. I'm pretty sure thats got it though now