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

Method getValue

Source/Core/CtrlrSysexProcessor.cpp:212–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210*/
211
212double CtrlrSysexProcessor::getValue(const Array<CtrlrSysexToken> &tokens, const CtrlrMidiMessageEx &message)
213{
214 double v = -1;
215
216 for (int i=0; i<tokens.size(); i++)
217 {
218 if (tokens[i].isHoldingValue())
219 {
220 v += indirectReverseOperation (*(message.m.getRawData()+i), tokens[i].getType());
221 }
222 }
223
224 return (v);
225}
226
227void CtrlrSysexProcessor::setSysExFormula(CtrlrMidiMessage &message, const String &formulaString)
228{

Callers 2

setSysExFormulaMethod · 0.45

Calls 5

indirectReverseOperationFunction · 0.85
isHoldingValueMethod · 0.80
sizeMethod · 0.45
getRawDataMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected