MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / getIndexForValue

Method getIndexForValue

Source/UIComponents/CtrlrValueMap.cpp:192–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192int CtrlrValueMap::getIndexForValue(const int value) const
193{
194 for (int i=0; i<values.size(); i++)
195 {
196 if (values[i].numericValue == value)
197 return (i);
198 }
199 return (-1);
200}
201
202void CtrlrValueMap::addAdditionalData (const int index, const String &data)
203{

Callers 3

setComponentMidiValueMethod · 0.80
setMappedValueMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected