Connecting parameters with compressor

I have been trying to connect the parameters of a compressor, using chainsettings but it isn’t working if anyone can help please do It crashes AudioHostPlugIn but can build successfully with the sliders working (not audible changes).
here is the repository

Kind regards,

Matt

ChainSettings getChainSettings(juce::AudioProcessorValueTreeState& apvts)
{
    ChainSettings settings;

    apvts.getRawParameterValue("Threshold")->load();
    apvts.getRawParameterValue("Ratio")->load();
    apvts.getRawParameterValue("Attack")->load();
    apvts.getRawParameterValue("Release ")->load();
    
    return settings;
}

^ you’re not actually populating the settings:

settings.x = apvts.getRawParameterValue(“Threshold”)->load();


[edit] - I also don’t see them used anywhere

Thank you very much for your reply.