Deluge Firmware 1.3.0
Build date: 2025.04.16
Loading...
Searching...
No Matches
ParamDescriptor Class Reference

#include <param_descriptor.h>

Public Member Functions

 ParamDescriptor (const ParamDescriptor &)=default
 
 ParamDescriptor (ParamDescriptor &&)=default
 
ParamDescriptoroperator= (const ParamDescriptor &)=default
 
ParamDescriptoroperator= (ParamDescriptor &&)=default
 
 ParamDescriptor (int32_t data_)
 Construct a ParamDescriptor directly from its value.
 
constexpr void setToHaveParamOnly (int32_t p)
 
constexpr void setToHaveParamAndSource (int32_t p, PatchSource s)
 
constexpr void setToHaveParamAndTwoSources (int32_t p, PatchSource s, PatchSource sLowestLevel)
 
constexpr bool isSetToParamWithNoSource (int32_t p) const
 
constexpr bool isSetToParamAndSource (int32_t p, PatchSource s) const
 
constexpr bool isJustAParam () const
 
constexpr int32_t getJustTheParam () const
 
constexpr void changeParam (int32_t newParam)
 
constexpr PatchSource getBottomLevelSource () const
 
constexpr void addSource (PatchSource newSource)
 
constexpr ParamDescriptor getDestination () const
 
constexpr bool hasJustOneSource () const
 
constexpr PatchSource getTopLevelSource () const
 
constexpr PatchSource getSecondSourceFromTop () const
 
constexpr bool hasSecondSource () const
 
constexpr void setToNull ()
 
constexpr bool isNull () const
 

Public Attributes

uint32_t data {0}
 

Detailed Description

Wrapper class around an int32, representing a parameter. The least significant 8 bits represent the actual parameter. The next 8 bits represent a PatchSource modulating that parameter, the 8 bits after that represent the source modulating that modulation, and so on.


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