Manages the configuration of blocks.
Public Member Functions | |
BlockConfigManager (juce::Array< ConfigDescription > defaultConfigOverrides) | |
void | setDeviceIndex (TopologyIndex newDeviceIndex) |
void | setDeviceComms (PhysicalTopologySource::DeviceConnection *newConn) |
juce::int32 | getItemValue (BlockConfigId id) |
void | setItemValue (BlockConfigId id, juce::int32 value) |
juce::int32 | getItemMin (BlockConfigId id) |
void | setItemMin (BlockConfigId id, juce::int32 min) |
juce::int32 | getItemMax (BlockConfigId id) |
void | setItemMax (BlockConfigId id, juce::int32 max) |
bool | getItemActive (BlockConfigId id) |
void | setItemActive (BlockConfigId id, bool isActive) |
juce::String | getOptionName (BlockConfigId id, juce::uint8 optionIndex) |
Block::ConfigMetaData | getMetaData (BlockConfigId id) |
void | resetConfigListActiveStatus () |
bool | isUserConfigID (BlockConfigId id) |
void | setBlockConfig (BlockConfigId id, juce::int32 value) |
void | requestBlockConfig (BlockConfigId id) |
void | requestFactoryConfigSync () |
void | requestUserConfigSync () |
void | handleConfigUpdateMessage (juce::int32 id, juce::int32 value, juce::int32 min, juce::int32 max) |
void | handleConfigSetMessage (juce::int32 id, juce::int32 value) |
Public Attributes | |
const ConfigDescription | defaultConfig [numConfigItems] |
Static Public Attributes | |
static constexpr juce::uint32 | numConfigItems = 96 |
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" |
static constexpr const char * | mode0Group = "Mode 1" |
static constexpr const char * | mode1Group = "Mode 2" |
static constexpr const char * | mode2Group = "Mode 3" |
static constexpr const char * | mode3Group = "Mode 4" |
Classes | |
struct | ConfigDescription |
Structure describing a configuration. More... | |
BlockConfigManager::BlockConfigManager | ( | juce::Array< ConfigDescription > | defaultConfigOverrides | ) |
void BlockConfigManager::setDeviceIndex | ( | TopologyIndex | newDeviceIndex | ) |
void BlockConfigManager::setDeviceComms | ( | PhysicalTopologySource::DeviceConnection * | newConn | ) |
juce::int32 BlockConfigManager::getItemValue | ( | BlockConfigId | id | ) |
void BlockConfigManager::setItemValue | ( | BlockConfigId | id, |
juce::int32 | value | ||
) |
juce::int32 BlockConfigManager::getItemMin | ( | BlockConfigId | id | ) |
void BlockConfigManager::setItemMin | ( | BlockConfigId | id, |
juce::int32 | min | ||
) |
References min().
juce::int32 BlockConfigManager::getItemMax | ( | BlockConfigId | id | ) |
void BlockConfigManager::setItemMax | ( | BlockConfigId | id, |
juce::int32 | max | ||
) |
References max().
bool BlockConfigManager::getItemActive | ( | BlockConfigId | id | ) |
void BlockConfigManager::setItemActive | ( | BlockConfigId | id, |
bool | isActive | ||
) |
juce::String BlockConfigManager::getOptionName | ( | BlockConfigId | id, |
juce::uint8 | optionIndex | ||
) |
Block::ConfigMetaData BlockConfigManager::getMetaData | ( | BlockConfigId | id | ) |
void BlockConfigManager::resetConfigListActiveStatus | ( | ) |
References roli::BlocksProtocol::key.
bool BlockConfigManager::isUserConfigID | ( | BlockConfigId | id | ) |
References roli::BlocksProtocol::user0, and roli::BlocksProtocol::user31.
void BlockConfigManager::setBlockConfig | ( | BlockConfigId | id, |
juce::int32 | value | ||
) |
void BlockConfigManager::requestBlockConfig | ( | BlockConfigId | id | ) |
void BlockConfigManager::requestFactoryConfigSync | ( | ) |
void BlockConfigManager::requestUserConfigSync | ( | ) |
void BlockConfigManager::handleConfigUpdateMessage | ( | juce::int32 | id, |
juce::int32 | value, | ||
juce::int32 | min, | ||
juce::int32 | max | ||
) |
void BlockConfigManager::handleConfigSetMessage | ( | juce::int32 | id, |
juce::int32 | value | ||
) |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
const ConfigDescription BlockConfigManager::defaultConfig[numConfigItems] |