# Problem with VST3 Bypass implementation

**URL:** <https://forum.juce.com/t/problem-with-vst3-bypass-implementation/17225>\
**Category:** Audio Plugins\
**Created:** [April 12, 2016, 1:39pm UTC](https://forum.juce.com/t/problem-with-vst3-bypass-implementation/17225 "2016-04-12T13:39:55Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![yfede](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/yfede/32/506_2.png) [@yfede](https://forum.juce.com/u/yfede)\
**Post date:** [April 15, 2016, 3:47pm UTC](https://forum.juce.com/t/problem-with-vst3-bypass-implementation/17225/6 "2016-04-15T15:47:20Z")

</div>

@frankfilipanits well yes, I am very aware of the limitations of the id = index simplification.

I agree very much with your proposed solution, which seems even more needed now that, by mean of the AudioProcessorParameter classes, the index is assigned **implicitly** to a parameter, based on the order of its addition to the AudioProcessor.  
At least, when the _getParameterXYZ(int index)_ methods were the only way to go, the parameter index that was being queried/referred was **explicit** , right there as an argument.

(somehow related to this, is this other discussion I had with jules: [AudioProcessorParameter and their indices](https://forum.juce.com/t/audioprocessorparameter-and-their-indices/16144))

The only bit of your post that I don’t agree with is this:

> the quick workaround @yfede suggested (a high fixed ID for bypass) won’t work because the wrappers rely on the fact that the ID is the index and vice-versa

That would be true if the parameter were to be exposed to the underlying AudioProcessor, but the VST3 bypass is not: it is entirely handled by the wrapper and that is the reason why it is given an index/id that is _beyond_ the _getNumParameters()_ of the AudioProcessor.

In such circumstance, that parameter is free to have an _id_ that is different from its _index_, and thus my proposed workaround still seems valid to me:  
set the _id_ of the bypass to some very high, constant value, so that the indices/ids of the parameters exposed by the AudioProcessor are very far from it until the identity _id==index_ is abandoned

---

_[View the full topic](https://forum.juce.com/t/problem-with-vst3-bypass-implementation/17225)._
