AudioProcessorTreeValueState and components

Hi again,

this is theoretical amd came up watching an old video from TAP creating a component, with an AudioProcessorTreeValueState.

if you are using re-usable components, and want to use to sync parameters between the editor and the Processor, how would I do that?

I would imagine I could pass the component an id on creation that is used for the attachments and use it in the processor in createAndAddParameter as well?

Anyone have a better idea? I am kind of used to being wrong about things in juce, so go ahead :wink:



That sounds correct to me. All that matters is that the ID you pass to the attachment’s constructor matches a parameter in the value tree. If it does, then it will attach to the given control properly.

1 Like