# Knob/param relationships?

**URL:** <https://iplug2.discourse.group/t/knob-param-relationships/163>\
**Category:** Uncategorized\
**Created:** [24 July 2020 18:32 UTC](https://iplug2.discourse.group/t/knob-param-relationships/163 "2020-07-24T18:32:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fairchild](https://avatars.discourse-cdn.com/v4/letter/f/e95f7d/32.png) [@fairchild](https://iplug2.discourse.group/u/fairchild)\
**Post date:** [24 July 2020 18:33 UTC](https://iplug2.discourse.group/t/knob-param-relationships/163/1 "2020-07-24T18:33:00Z")

</div>

Is there an idiomatic way to define a relationship between sets of knobs/parameters such that when a knob is rotated or a parameter is set another knob/parameter is automatically adjusted according to some function (say an integer multiple)?

---

<div class="post-metadata">

**Author:** ![fairchild](https://avatars.discourse-cdn.com/v4/letter/f/e95f7d/32.png) [@fairchild](https://iplug2.discourse.group/u/fairchild)\
**Post date:** [25 July 2020 20:29 UTC](https://iplug2.discourse.group/t/knob-param-relationships/163/2 "2020-07-25T20:29:12Z")

</div>

Sorry, my original question may not have been very clearly stated ;). Maybe a better thing to ask would be: If I use SetParameterValue() in OnParamChange() for a _different_ parameter how can I get the UI to update the knob value associated with the different parameter that I manually changed?

---

<div class="post-metadata">

**Author:** ![fairchild](https://avatars.discourse-cdn.com/v4/letter/f/e95f7d/32.png) [@fairchild](https://iplug2.discourse.group/u/fairchild)\
**Post date:** [25 July 2020 20:46 UTC](https://iplug2.discourse.group/t/knob-param-relationships/163/3 "2020-07-25T20:46:38Z")

</div>

Ah, I just figured it out. Don’t call SetParameterValue() from OnParamChange(), instead call GetParam()-\>Set() for the manual change and then call SendCurrentParamValuesFromDelegate(). Sorry for the unclear questions!

---

<div class="post-metadata">

**Author:** ![AlexHarker](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@AlexHarker](https://iplug2.discourse.group/u/AlexHarker)\
**Post date:** [2 August 2020 09:41 UTC](https://iplug2.discourse.group/t/knob-param-relationships/163/4 "2020-08-02T09:41:26Z")

</div>

Another way is to have a control linked to multiple parameters - that might be more idiomatic. Each control can address an arbitrary number of parameters If you initialise it accordingly.
