Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
sbl::control::Pickup Class Reference

A takeover source must reach the held value before it captures it. More...

Detailed Description

A takeover source must reach the held value before it captures it.

When another source sets the parameter (hold()), the takeover source - a knob - is ignored until it crosses the held value or comes within the window of it. From then on the parameter follows the knob until the next hold(). Without a hold the knob drives the parameter directly.

Definition at line 153 of file merge.hpp.

#include <merge.hpp>

Public Member Functions

 Pickup (float window=0.01f)
 
void hold (float value)
 
float process (float source)
 
bool caught () const
 
float value () const
 
void release ()
 

Constructor & Destructor Documentation

◆ Pickup()

sbl::control::Pickup::Pickup ( float  window = 0.01f)
inlineexplicit

Definition at line 155 of file merge.hpp.

Member Function Documentation

◆ hold()

void sbl::control::Pickup::hold ( float  value)
inline

Another source set the parameter; the takeover source must now reach it.

Definition at line 158 of file merge.hpp.

◆ process()

float sbl::control::Pickup::process ( float  source)
inline

Feed the takeover source (every tick). Returns the parameter value.

Definition at line 165 of file merge.hpp.

◆ caught()

bool sbl::control::Pickup::caught ( ) const
inline

True while the takeover source drives the parameter.

Definition at line 183 of file merge.hpp.

◆ value()

float sbl::control::Pickup::value ( ) const
inline

Definition at line 185 of file merge.hpp.

◆ release()

void sbl::control::Pickup::release ( )
inline

Hand the parameter to the takeover source now (e.g. a panel reset).

Definition at line 188 of file merge.hpp.


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