# VST3 Program parameter is not updated when the loaded program changed and updateHostDisplay() is called

**URL:** <https://forum.juce.com/t/vst3-program-parameter-is-not-updated-when-the-loaded-program-changed-and-updatehostdisplay-is-called/43253>\
**Category:** Audio Plugins\
**Created:** [December 15, 2020, 10:34am UTC](https://forum.juce.com/t/vst3-program-parameter-is-not-updated-when-the-loaded-program-changed-and-updatehostdisplay-is-called/43253 "2020-12-15T10:34:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sparklingRhubarb](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@sparklingRhubarb](https://forum.juce.com/u/sparklingRhubarb)\
**Post date:** [December 15, 2020, 10:34am UTC](https://forum.juce.com/t/vst3-program-parameter-is-not-updated-when-the-loaded-program-changed-and-updatehostdisplay-is-called/43253/1 "2020-12-15T10:34:09Z")

</div>

Since June 23 (commit `51fe471461f75fcfd72f7d0749382cbc149eef37`) `updateHostDisplay()` doesn’t properly update the VST3 program parameter. There are two cases where this parameter must be updated:

1. The number of available programs changed
2. The current program changed

Currently 1. is handled correctly but 2. is not handled at all.  
Here’s a pull request fixing this: [https://github.com/juce-framework/JUCE/pull/816](https://github.com/juce-framework/JUCE/pull/816)

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [January 6, 2021, 5:52pm UTC](https://forum.juce.com/t/vst3-program-parameter-is-not-updated-when-the-loaded-program-changed-and-updatehostdisplay-is-called/43253/2 "2021-01-06T17:52:20Z")

</div>

Thanks for reporting and for the PR. We’ve added a fix for this on the `develop` branch here:

> <https://github.com/juce-framework/JUCE/commit/3ff966603e57ba55c3ab372dd9ef2340114feed1>

---

<div class="post-metadata">

**Author:** ![sparklingRhubarb](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@sparklingRhubarb](https://forum.juce.com/u/sparklingRhubarb)\
**Post date:** [January 7, 2021, 8:33am UTC](https://forum.juce.com/t/vst3-program-parameter-is-not-updated-when-the-loaded-program-changed-and-updatehostdisplay-is-called/43253/3 "2021-01-07T08:33:50Z")

</div>

Thanks! I closed the PR for you.
