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

Method getValueFromSysExData

Source/Core/CtrlrSysexProcessor.cpp:155–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155double CtrlrSysexProcessor::getValueFromSysExData (const Array<CtrlrSysexToken> &tokens, const CtrlrMidiMessageEx &message)
156{
157 double v = 0;
158
159 for (int i=0; i<tokens.size(); i++)
160 {
161 if (tokens[i].isHoldingValue())
162 {
163 v += indirectReverseOperation (*(message.m.getRawData()+i), tokens[i].getType());
164 }
165 }
166
167 return (v);
168}
169
170uint8 CtrlrSysexProcessor::getRolandSplit (const int value, const int byteNum)
171{

Callers 1

getValueMethod · 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