Control 2 things with 1 button (Almost worked it out!!!)
-
Hi guys,
I've almost worked it out other than 1 tiny snag that's really bugging me. I'm sure its an easy fix.
Basically, I've been trying to get a button that controls both the 'Comp Enabled' function in dynamics, and also turns off and on a simple gain module (which would be the makeup gain for that compressor)
The best way I've found so far is to have the 'comp enabled' set to a macro1 (min set at 0.5 - max set at 1.0 in the macro table)
And having the 'gain' from the simple gain module also set to marco1 (min and max both at 0 in the macro tabel). This sets the gain back to 0db every time the comp is disabled.
The only problem with this is, I have a separate slider which also controls the simple gain. When the value on that is turned up past or below 0db and then the button is activated... the new simple gain sliders value doesn't update on the interface, even though in the back end module it has reset it to 0db.
And of course the other problem is that when the button is switched again to turn the comp/gain back on, 0db is still the value of the gain in the back end, but the value on the interface slider still shows whatever value it was left at before the bypass button was activated, even though it is actually 0db. That makes it no good for A/B'ing, BUT, if the gain slider on the interface is moved by 0.01, then it picks the value back up to where it was before it was disabled on both the interface and back end module. So it's close!!!!
It would be loads better if I could just disable the simple gain module, and the dynamix module at the same time with 1 button, but the code I've put in is garbage every time and does nothing like I want it to This workaround is as close as I can get.
Can any one point me in the right direction please to how fix my very almost there method, or how I would need to start the code to replicate it that way?
I'll put the snippet below so you can see how I've done it.
Thanks all
HiseSnippet 1405.3oc2X0saaaCElxNLHIcoqsnXXWJLLfkBjVHu1zEfgg3D6jBiU2XDm1zcU.qDsEQkH0nnRh2v.5qQuquF6t7.rK1ivdD5avFIkjEssrim2ZQa4c7b3OemOd34vC6vYt33XFGXs5wChv.qOC1c.U32vGQnfVMAVeCrMxkyr2mhdQ.1tAKLxFQ8rOBGiE1ORNLaAy1Ar2fHTbL1CXYUUIUthKAzs2tydn.D0EWHB.dFi3heLIjHJj1o9ORBBN.4gOlDZL5GTukKi1fEvRj.sJzADgbeIpO9IH0vp.AVKuuGQv3cEHANFXszdLuAc8YmSSG+yHwDI5UcpA5JWnTwGvB7THVIEzvmD30ImPhA.KXmB5oZJ8baXahGYn7BZ5FZE1EyvjOrpLK3UyDd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bZ04CtWQE1qliwzTZ6KS8DHKoZXrzdnj.QtzQ8qaynrHeFk3ZdneDVderee0i0KvdoFz3O7310K4EGOV53g3sSqLXQ3hZyOWLqyquDlBWa0kQ6OMJpn5mPEU7AVhi2G6g9SGN0M8WGT9xqnkHsap9CDK9FhrORABqcOGfrdexottJ59txEqha9uW4cZTQg1qp9BAyhqhLKBeqhtmltYeNrn1.6Ck0xqx4AgNpMDcQ9dGvNOU5V.eRe+bwD8CdyqCjiQdLZvfrCvYfuo8mB4+l5nPL+WFTHaEos6LDbKCu+CMQmyPz4bUnqbJ+aKnbmIn7oLm6u.y4AKvb1ZAlyCWf47cKvb1dlyQkKe2DAKLMRlTPm80+Gnk0vRespB9GypeTgC
-
It's hard to follow exactly what you want to happen.
Can you break it down for me?
Button off = ?
Button on = ? -
HiseSnippet 1066.3oc0W8taaaCDmxNbnVctnsXO.BA6CN.cAxascCXHnowNYvXKoFwYcaepfQhNlHTjBRToyKHOM6cYOO6MX6H0+nsEbxL1BVzWr486Nxe2QdGONNQFPSSkIHmNmMOlhb9T7j4B0rAyHLAZzPjySvGSRUzDubQGLOljlRCQNNs+Ns.mNagLe+4aNfvIh.ZsHD58RV.8GXQLUszw6+8LN+HRH8LVjk1ub+QARw.IWlA7oM1GESBtjbA8DhVsVXjymbXHSISlnHJZJxYqCjgymLS9QQt9umkxNmS0C5il.STt3ij7PMi0+GMXFiGNtzuSQvrLtNJzNOJ7Y3iYgrJ40QimZ.7psvNd3zZczq+FROGK5sUN8dFdRPBKVUin41iwiDvF0TBrEXSqbcQs98V3ARPCgZ2HxkziRfAUVz6099uv6U9967scc65BaDoJuqHIdSXQwbpdqtu2ddlCG6dAUc3zoz.Uusyg8L3aqss1xgyEjHVPZi1UAtjQGjoTRyRUxUvnAxnXo.Fza6B7syoYWWlfyDTuoYh.ESJ7jhBMzlmH48BJs8Ev7yyn6z08Zvrod8LC81au9fHO3657epX1toTUYbrmItngshGMqvMcco7T5cXN6eayYeq47FiCeKAEs0EN9.BmeNj+za4HhdNsBWmHUz2I5si60tcbuw0aYnoSaDqXx3zjFg0Y1IqyvdhrnyoIkaJkJBGwWLG5w2sbnf73hkhRwHAS8tXZw35rLMVtWWh5ipbVaQ09nsTiq0fZ0hVMIFUruoSmKTGTUYRleRQxb9tDhAbrCtXKCYhN10XQ+3ngDEobhf4DVmXZhhoiVNCoWAEbyqRzAOjldoRFazs3vBDfuCK6uhbvN+Arfy0+42LUsWoJDTKTFlwIpEKPpOFW..63KTIRWsQjxTys8n+AUM8arpY+lB32Q59L7XlJXVy7sUC7EB7+Wy2h6f5hyqUVS1svG8y2CW3zxhKOppqfpRTEcEXW3eMcEfPCobxBAvehEplUK3W1ug9FFItBNSOVxIIKG9aunO29t4y2x89q+Lh1k7dvbl94XSH+gDgMGId3P3mhGS9+vAhSkYJl3hiIpDltj8IYQSflmCn.UEBnKDc06V5qexG6qGqIzDpHzL3ufuBv95wNEf8KAsCIOOOj3hKamonsyptaVpNfhdnf.dUnc9qV7YyRnoy.eaYf2pTPKK1ANszSobJIkZWxPeeVhgVMrD0fMtP0vmp28rWsZnkYxmasjMvGySbnMQlBjFYRA1pdcAvJKjMKNF5gOKtgoaUf+0pYdubh69XMhHAIxODj2Jl9xfGYj.9sv7XyNvqdgwdUcfgw965ihfG+8gf.8UweAjQ1rMe4FXyWsA17xMvlWsA175MvludCr4aVqM52c+1LkLJuhKHX7glNgcbpx5bZi9a.pwkgjB
-
@SteveRiggs plus - is there some reason you are not using "Comp Makeup"?
-
Some kind of wizardry going on there!
Absolutely spot on mate. Thank you! This has been driving me nuts for ages. It makes sense now I can see the code as well. Great stuff. Thank you mate.
@dustbro
Sorry, it was a very long way of explaining it. Was trying to just find out how to bypass a dynamics module and a simple gain module with one button. Tod-Slaughter's snippet above nailed it :)
-
I am using both on the plugin. But I like having the option to control the makeup manually as well as using the auto makeup ;)