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

Method getValueFromSysExData

Source/Core/CtrlrSysexProcessorOwned.cpp:18–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18double CtrlrSysexProcessorOwned::getValueFromSysExData (const Array<CtrlrSysexToken> &tokens, const CtrlrMidiMessageEx &message)
19{
20 double v = 0;
21
22 for (int i=0; i<tokens.size(); i++)
23 {
24 if (tokens[i].isHoldingValue())
25 {
26 v += indirectReverseOperation (*(message.m.getRawData()+i), tokens[i].getType());
27 }
28 }
29
30 return (v);
31}
32
33void CtrlrSysexProcessorOwned::sysexProcessPrograms(const Array<CtrlrSysexToken> &tokens, MidiMessage &m)
34{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected