Bare Minimum Code to Use GUI Component in Plugin

I had no issues finding and replacing the code in a “GUI Application” so that I could use a GUI component and edit visually. However, I’m having a terrible time adding a GUI component to an audio plugin session and finding the right code to swap to accept that new GUI component as the primary window. Does anyone have a template of this? I just overwrote the pluginEditor with the GUI component and looked for errors to replace, but I found myself quickly lost.

  • The Component must inherit AudioProcessorEditor
  • The constructor must take an AudioProcessor& reference, see the original template
  • In AudioProcessor::createEditor() return an instance of your component.

That should do it AFAIK

Once again, thanks Daniel. You got me up and running.