Update text on changed value in audio processor

Hi there,

I’m trying to create a basic plugin that displays the peak frequency of a signal as text. I’m not sure how to implement the update of the displayed text. In my current version, I don’t use any types of callbacks, which causes the plugin to only update values during loading.

My original thought was to use an AudioProcessorValueTreeState parmeter that is updated by the processor and linked to a juce::Label. Unfortunately, I’m now a little puzzled on how to connect the Label to the ValueTree, since there is no such thing as a LabelAttachment.

What would be the standard procedure to implement this behavior (AudioProcessor sets value for text)?

All topics I found that seemed similar to this were describing how to do it the other way 'round (Text/Slider/Button sets value for audioProcessor).

thanks in advance!