JUCE
Classes | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
BlockConfigManager Struct Reference

Manages the configuration of blocks. More...

Classes

struct  ConfigDescription
 Structure describing a configuration. More...
 

Public Member Functions

 BlockConfigManager (Array< ConfigDescription > defaultConfig)
 
void setDeviceIndex (TopologyIndex newDeviceIndex)
 
void setDeviceComms (PhysicalTopologySource::DeviceConnection *newConn)
 
int32 getItemValue (ConfigItemId item)
 
void setItemValue (ConfigItemId item, int32 value)
 
int32 getItemMin (ConfigItemId item)
 
void setItemMin (ConfigItemId item, int32 min)
 
int32 getItemMax (ConfigItemId item)
 
void setItemMax (ConfigItemId item, int32 max)
 
bool getItemActive (ConfigItemId item)
 
void setItemActive (ConfigItemId item, bool isActive)
 
String getOptionName (ConfigItemId item, uint8 optionIndex)
 
Block::ConfigMetaData getMetaData (ConfigItemId item)
 
void resetConfigListActiveStatus ()
 
void setBlockConfig (ConfigItemId item, int32 value)
 
void requestBlockConfig (ConfigItemId item)
 
void requestFactoryConfigSync ()
 
void requestUserConfigSync ()
 
void handleConfigUpdateMessage (int32 item, int32 value, int32 min, int32 max)
 
void handleConfigSetMessage (int32 item, int32 value)
 

Public Attributes

ConfigDescription configList [numConfigItems]
 

Static Public Attributes

static constexpr uint32 numConfigItems = 69
 
static constexpr const char * midiSettingsGroup = "MIDI Settings"
 
static constexpr const char * pitchGroup = "Pitch"
 
static constexpr const char * playGroup = "Play mode"
 
static constexpr const char * sensitivityGroup = "Sensitivity"
 
static constexpr const char * rhythmGroup = "Rhythm"
 
static constexpr const char * coloursGroup = "Colors"
 

Detailed Description

Manages the configuration of blocks.

Constructor & Destructor Documentation

◆ BlockConfigManager()

BlockConfigManager::BlockConfigManager ( Array< ConfigDescription defaultConfig)

Member Function Documentation

◆ setDeviceIndex()

void BlockConfigManager::setDeviceIndex ( TopologyIndex  newDeviceIndex)

◆ setDeviceComms()

void BlockConfigManager::setDeviceComms ( PhysicalTopologySource::DeviceConnection newConn)

◆ getItemValue()

int32 BlockConfigManager::getItemValue ( ConfigItemId  item)

◆ setItemValue()

void BlockConfigManager::setItemValue ( ConfigItemId  item,
int32  value 
)

◆ getItemMin()

int32 BlockConfigManager::getItemMin ( ConfigItemId  item)

◆ setItemMin()

void BlockConfigManager::setItemMin ( ConfigItemId  item,
int32  min 
)

◆ getItemMax()

int32 BlockConfigManager::getItemMax ( ConfigItemId  item)

◆ setItemMax()

void BlockConfigManager::setItemMax ( ConfigItemId  item,
int32  max 
)

◆ getItemActive()

bool BlockConfigManager::getItemActive ( ConfigItemId  item)

◆ setItemActive()

void BlockConfigManager::setItemActive ( ConfigItemId  item,
bool  isActive 
)

◆ getOptionName()

String BlockConfigManager::getOptionName ( ConfigItemId  item,
uint8  optionIndex 
)

◆ getMetaData()

Block::ConfigMetaData BlockConfigManager::getMetaData ( ConfigItemId  item)

◆ resetConfigListActiveStatus()

void BlockConfigManager::resetConfigListActiveStatus ( )

◆ setBlockConfig()

void BlockConfigManager::setBlockConfig ( ConfigItemId  item,
int32  value 
)

◆ requestBlockConfig()

void BlockConfigManager::requestBlockConfig ( ConfigItemId  item)

◆ requestFactoryConfigSync()

void BlockConfigManager::requestFactoryConfigSync ( )

◆ requestUserConfigSync()

void BlockConfigManager::requestUserConfigSync ( )

◆ handleConfigUpdateMessage()

void BlockConfigManager::handleConfigUpdateMessage ( int32  item,
int32  value,
int32  min,
int32  max 
)

◆ handleConfigSetMessage()

void BlockConfigManager::handleConfigSetMessage ( int32  item,
int32  value 
)

Member Data Documentation

◆ numConfigItems

constexpr uint32 BlockConfigManager::numConfigItems = 69
static

◆ midiSettingsGroup

constexpr const char* BlockConfigManager::midiSettingsGroup = "MIDI Settings"
static

◆ pitchGroup

constexpr const char* BlockConfigManager::pitchGroup = "Pitch"
static

◆ playGroup

constexpr const char* BlockConfigManager::playGroup = "Play mode"
static

◆ sensitivityGroup

constexpr const char* BlockConfigManager::sensitivityGroup = "Sensitivity"
static

◆ rhythmGroup

constexpr const char* BlockConfigManager::rhythmGroup = "Rhythm"
static

◆ coloursGroup

constexpr const char* BlockConfigManager::coloursGroup = "Colors"
static

◆ configList

ConfigDescription BlockConfigManager::configList[numConfigItems]

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