how to save parametres correctly? VST3

The processor Component should save the model of your plug-in. In the controller part you could save optionally some information related to UI.

Saving
the host calls:

  • ProcessorComponent->getState (ProcessorState)
  • ControllerComponent->getState(ControllerState)

these 2 states are saved in the project or preset.

Loading:

  • ProcessorComponent->setState (ProcessorState)
  • ControllerComponent->setComponentState (ProcessorState) // Here the same than what the processor gets in order to have the possibility to initialize local stuff)
  • ControllerComponent->setState(ControllerState)
1 Like