Add Slider in another class than the MainContentComponent

Hi ! I am new on juce. I have followed the tutorial : “introduction to dsp”, I would like to add some slider directly in the customoscillator to process the signal directly, but I don’t know how to do that…
Thank you.
Arnaud