Deployment Thread (DPL)
Table of contents
Deployment Thread (DPL)
This thread is responsible for the deployment process. In here, you will be preparing the inputs to the model, run inference, and post-process the outputs.
The deployment will be done in the deploy
method of the DPL
class, which is located in the Deployment/Deploy.cpp
file. This method does not run all the time, but rather, it is only triggered whenever any status of the plugin that may impact the generation process changes. To be more specific, the deploy
method is triggered whenever any of the following changes:
- An EventFromHost is received from the host. You need to specify what events are required from the host (see here
- A GUI Parameter is changed
- An Audio file or MIDI file is dropped on any of the plugin’s AudiVisualizers or MidiVisualizers respectively.
- A new preset is loaded (see 4. Preset Management for more details)
Once you process the above information, and subsequently, run inference, you will need to extract the outputs from the model and specify what sequence and how it should be played back. This is done by wrapping these information in PlaybackSequence and PlaybackPolicy respectively.
An overview of the “deploy” method is available here.