VSTPluginFormat::getProgramName(index) only returns the first 24 chars

I just discovered that which is not ideal for my application: I import presets from Sylenth1 soundbanks and it happens quite often that program names can have a length > 24 chars.
Is there a reason for that or possibly decided by Sylenth1 what to return here?

The VST API specifies a maximum length of 24 characters

enum VstStringConstants { kVstMaxProgNameLen = 24, kVstMaxParamStrLen = 8, kVstMaxVendorStrLen = 64, kVstMaxProductStrLen = 64, kVstMaxEffectNameLen = 32 }

http://www.dith.it/listing/vst_stuff/vstsdk2.4/doc/html/aeffect_8h.html

1 Like

Thank you Tom!