Hi Jules,
It turns out that VST plugins don’t always dispatch text, like parameter names and parameter text, in ASCII…
Would you mind adding the following fixes/minor changes to the VSTPluginInstance?
String getParameterLabel (int index) const
{
if (effect != nullptr)
{
jassert (index >= 0 && index < effect->numParams);
char nm [256] = { 0 };
dispatch (effGetParamLabel, index, 0, nm, 0);
return String (CharPointer_UTF8 (nm)).trim(); //Modified here
}
return String::empty;
}
const String getParameterName (int index)
{
if (effect != nullptr)
{
jassert (index >= 0 && index < effect->numParams);
char nm [256] = { 0 };
dispatch (effGetParamName, index, 0, nm, 0);
return String (CharPointer_UTF8 (nm)).trim(); //Modified here
}
return String::empty;
}
const String getParameterText (int index)
{
if (effect != nullptr)
{
jassert (index >= 0 && index < effect->numParams);
char nm [256] = { 0 };
dispatch (effGetParamDisplay, index, 0, nm, 0);
return String (CharPointer_UTF8 (nm)).trim(); //Modified here
}
return String::empty;
}