|
Krotos Modules 3
|
Holds the info required to create a new KAttachment for a Kwidget parameter. More...
#include <KwidgetProcessor.h>
Public Attributes | |
| String | paramID |
| std::function< void(float)> | updateFunction |
| int | updateRate |
Holds the info required to create a new KAttachment for a Kwidget parameter.
| String krotos::KwidgetProcessor::AttachmentInfo::paramID |
The ID of the parameter you want to receive updates from.
| std::function<void(float)> krotos::KwidgetProcessor::AttachmentInfo::updateFunction |
Function to call with new parameter values when the parameter is changed.
For example:
If you don't want to provide a callback, pass in nullptr for this and -1 for the updateRate.
| int krotos::KwidgetProcessor::AttachmentInfo::updateRate |
If updateRate == -1 No update function. updateRate == 0 Function is called once per block. updateRate >= 1 Function is called every 'updateRate' samples.