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

Method updateCacheSysEx

Source/MIDI/CtrlrMidiInputComparatorSingle.cpp:207–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void CtrlrMidiInputComparatorSingle::updateCacheSysEx (CtrlrMultiMidiMapIterator &it)
208{
209 CtrlrCacheDataMulti c((*it).first, (*it).second);
210 if (cacheSysEx.contains (c))
211 {
212 if (cacheSysEx.indexOf (c) == 0)
213 return;
214 else
215 {
216 cacheSysEx.swap (cacheSysEx.indexOf(c), 0);
217 }
218 }
219 else
220 {
221 cacheSysEx.insert (0, c);
222 cacheSysEx.resize (cacheSize);
223 }
224}
225
226bool CtrlrMidiInputComparatorSingle::cacheMatch(CtrlrMidiMessageType type, const int number, const int channel)
227{

Callers

nothing calls this directly

Calls 5

containsMethod · 0.45
indexOfMethod · 0.45
swapMethod · 0.45
insertMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected