Is there a way to connect the Saturation PreGain and PostGain controls
-
Is there a way to connect the Saturation PreGain and PostGain controls/knobs?
Linking knobs is no problem, i've already done it for delays.
But Saturation is a different thing, can you edit the buttons using any script?
PreGain starts with -24 to 0 and PostGain with 0 to 24
I've tried a lot, but can't find a solution -
@Xearox73 There should be api's to cover min/max/mid values. You should be able to change them as you need.
-
@Xearox73
I don't really know what you want to achieve. But this snippet demonstrates how you can control both parameters with one knob. :-)HiseSnippet 1005.3ocuV0saaaCElzwJswsancn.6VgrabF5B7eowCEE0MNIcFcIwXJ8m6JnonhILEofDUacK5c64oOBc8QY6MXuAaGRIaIu3kj5gNcggO7bN77wC+NeRCiUTVRhJFgqc5zHFBeSGuoR839iIbIZv9H7243QzowDMWIcO80J2gjXRHSyhcOQxbehTMBs2zHRRByGgwq8XSh3MphrO+4C2iHHRJqXID5YJNk8y7PttX0g8dBWHNj3yNkGVJ5N8FPUx9JgJE.4ZNMPQD5DxYriIlvp3f9IRxXD96cZy7a0sKYmNsaS69ico6RIcYzli1sQKRfe6tL+Q9c1oCAgW+.etVE6oIZVBro6o7m5MV8ZYVAdFOgORvLFMQdPkyVF0eLW3ObVGKAgvUGVz+VKq+cGmi3974qWzGuk0gaQFkaZ3JWDjZ9Y.IbIHUMCR21wiFyizEdL34FNCjvkX.AtaJCkrXQU9H1ouBhPp2NjLgcXLXLOi52qQi65B+r08qUCteRzt4rDUbS2G3Z4PaeFSePP.ipquYg2MMoTiKEbf8DjJoVhkRZHRMMULVIpSUgQJIT6659JhHksUs2Uaih8X6Dl9QZcLeTplUu0rft++dLsyiw8Gba0YaCreO.iYGP.n8mUw5aZQxlaY1fb7zmHDi.ZW8EgIrKkN.GqzrSj0sPs16q49OcEDrTe46kfEuT2log3KJw5xzvQr3xMJSfvs+hTp0uZTJZVKoTfJ4.IWeRDK29Pkv2PUL++7DPTdO0PEyQHDp1RD+5bhnmf6yhQbXStlisghrfurFA5oC1mnIy1FXGgpDwh0bygAuO6UfFRF+dCm8YISzpHar4WifR1kVz2LufeRza5bieOpWhdpo0rtMPTH22WvFpR3lVeIwseKQyh73u0h72cmO73+3s+5CCKq+gPIoAA72XUpB3hvDfQFMHDDvP3uw4oILWeV.IUncSl.IBSESX9mprwGRJPHpaOz4GsAQEkepvP3KqzXzfycX.b4wayHrDNHSKqQ+YH+z3BketpP71NC4Z53kiwJKAi.O3KAFyEs+JmLcpB.V04vWrpJzMt5JzWKq92vYttks52rvt4hhyyeUb4VyyAktPUpTW9NcXLawWECGbUhdw059I7ZeAeyyRu6+1xePw+EVZ0q1UvknW8KpTMWd1QDXvDF2bNNMzC9VCJCPrTxDPgbvULBaY1ML1F.4wj9Vi+Bdxc1zXiyc1bly+WpQHgFqdIMSx0bebc6Jv4VZ+RoMbNxX6tDsVPei+RJcws5bI1ZUSr8plXmUMwcV0Du2pl3tqZhcu7DMe23iR0pvr4DD5ngGXe2HFefj.Ld6HC5uQV.ZTP
-
@Oli-Ullmann
Hi and thanks
thats not the Problem, using one knob for multiple knobs but
my intention behind this is: if you use the pre-gain the post-gain should be decreased when the knobs are linked.
due to the negative and positive assignment of the controls, one of the two always jumps to its default and can no longer be controlled
pre-gain has a min -24db max 0db and post-gain 0db max 24db+
using pre-gain, sets post to 0 and post sets pre to 0
thats my problem
changing the min max and defaults by script results in no operation at both knobs -
.getValueNormalised() and .setValueNormalised() are your friends here....
-
@Xearox73 It would help to have a minimal snippet for understanding what you need, but basically @Lindon is right, you might want to use the normalized value to set each other knobs
const var SimpleGain1 = Synth.getEffect("Simple Gain1"); const var SimpleGain2 = Synth.getEffect("Simple Gain2"); const var Knob1 = Content.getComponent("Knob1"); const var Knob2 = Content.getComponent("Knob2"); inline function onKnob1Control(component, value) { SimpleGain1.setAttribute(SimpleGain1.Gain, value); // counteract knob2 Knob2.setValueNormalized(1.0 - component.getValueNormalized()); Knob2.changed(); }; Knob1.setControlCallback(onKnob1Control); inline function onKnob2Control(component, value) { SimpleGain2.setAttribute(SimpleGain2.Gain, value); // counteract knob1 Knob1.setValueNormalized(1.0 - component.getValueNormalized()); Knob1.changed(); }; Knob2.setControlCallback(onKnob2Control);
The knob have to have their mid point set to the real mid value, so -12 and 12. Otherwise when one knob is at XdB the other will be YdB instead of -XdB
-
@ustk @Lindon
WOW - thanks !!! .setValueNormalized() was the last thing that came into my mindRUNS PERFECT
HiseSnippet 1068.3ocuV0saaaCElx1ZYVsaXEX.6tUgbkxPcpjbRpKBFlabR1L5RpwbW5tqflh1lvRjBTTsyanWtmq5Gk9Hr2fLRIYK5D6jL2sZAXfyOe77cH44bXONCgSRXbfg0KmFiAF22r+TpXbmwPBEz8XfwCMi43FwrDQiQRcMBIzID5nFoTNFFLEbzzXXRBN.XXT8GUfLpWCj86u+gifgPJBWpB.tfQP3elDQDkZ6094jvvSgA3WRhz7du1cQLZGVHKURvpltfXHZBbD9bnxsJlfeBlLFX7cl99CQsbca0r49tPXy.HbOObymhGdvPz9tO0MXv9txuC.Fe1IADAi2W.E3DfQsiXAS6Ol8VZd.tfjPFDhUBdf9xHmq9TVXfJEUZAcFSBC5MemKAHWkdk6iUy2G+ZyyHAjE5K2O+pLC1kHz2.MprL8ptD87zomqF8VAkLznTsbJ8.y9HNIVTZQwm6Y1kJv7gP44jNUx8ET4IUM6vjdPE6FAmfOkKEVfv4.W2GYK+amCsrjmUIB62.418ghTNTlGd1euc18ocGgEmLbHFIb1tz51RXkndNkMPAXd3jP5vhhYTofy1YVuN.+aDfuBfEgJuzhsGlRQBBiZynYKlBFmE5fli4QxUMLEui0eZUujj6lfEOSH3jAoBri+bmNzptU8G+XaDKUsa.QB6IpHZUOKvJTWnb7bFOBFR9Cbfi2tt1MrWDNEeupK6nV27E.MFRGoTcn06NzJiwpEsf0cfggCjUCNKmLqOc82nzs4sjtd4r06iMc8VQ55u9z0eQ5pkkmyD3WPcxxGq2YYeUSCGtRaEKUHluRypVR7aBnCMMZ.lquapbTV1sbsr45qk0a0fxuLq4Hi1kRDuHFSWWCHPQEfrtuRAqjtJxp5+xhp99gj.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