Automation Gets Disabled Ableton when reopening plugin

Whenever I automate a vst3 parameter in ableton after a while of either playing the automation or reopening the plugin window, the automation for some reason gets disabled.

It goes from this


To this

This is the code i’m using to attach parameters:

    PitchSlider _pitchSlider[3];
    std::unique_ptr<juce::SliderParameterAttachment> slider_attachments[17];
    addAndMakeVisible(_pitchSlider[1]);
    juce::RangedAudioParameter* grunge_param = dynamic_cast<juce::RangedAudioParameter*>(params[11]);
    this->slider_attachments[11].reset(new juce::SliderParameterAttachment(*grunge_param, _pitchSlider[1], nullptr));

Any ideas?

It would be helpful to know the following:

  • Which JUCE version are you using to build your plugin?
  • Which version of Live are you testing?
  • Have you tested any of the JUCE example plugins, and do those display the same problem?