Populate ComboBox from AudioProcessorValueTreeState

I suggested once to populate this automatically but they wanted to keep existing behaviour.
But it can be solved with an “one-liner”:

auto* parameter = valueTreeState.getParameter ("type");
filterChoice->addItemList (parameter->getAllValueStrings(), 1);

addAndMakeVisible (filterChoice);
// and I prefer make_unique, makes no technical difference though in this case:
filterChoiceAttachment = std::make_unique<juce::AudioProcessorValueTreeState::ComboBoxAttachment> (valueTreeState, "type", filterChoice);

Hope that helps.