Krotos Modules 3
Loading...
Searching...
No Matches
krotos::KwidgetProcessor::AttachmentInfo Class Reference

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
 

Detailed Description

Holds the info required to create a new KAttachment for a Kwidget parameter.

Member Data Documentation

◆ paramID

String krotos::KwidgetProcessor::AttachmentInfo::paramID

The ID of the parameter you want to receive updates from.

◆ updateFunction

std::function<void(float)> krotos::KwidgetProcessor::AttachmentInfo::updateFunction

Function to call with new parameter values when the parameter is changed.

For example:

[this](float x) { setMix(x); }

If you don't want to provide a callback, pass in nullptr for this and -1 for the updateRate.

◆ 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.


The documentation for this class was generated from the following file: