AudioProcessorParameter - a nonstatic member reference must be relative to a specific object

Hello,
I am using a component with constructor as
sComponent(AudioProcessorParameter* p, String s, SpecificType type) in a tabbed component where I need to addTab, for eg
addTab(“Name”, colour, new sComponent(p, “String”, type), true);

(Colur, and type are correctly defined)

When adding this component as tab, how to instantiate AudioProcessorParameter* p part?
if I used local variable (AudioProcessorParameter& p) it gives an error – a nonstatic member reference must be relative to a specific object.

Any help/ suggestion is appreciated! TIA!

If you have a reference and want a pointer, then take the address of the reference: &p.