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

Method addMatchTarget

Source/MIDI/CtrlrMidiInputComparatorSingle.cpp:87–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void CtrlrMidiInputComparatorSingle::addMatchTarget (CtrlrModulator *m)
88{
89 const CtrlrMidiMessageType type = getMidiTypeFromModulator(m, 0, source);
90
91 if (type == SysEx)
92 {
93 addMatchTargetSysEx(m);
94 return;
95 }
96
97 CtrlrMidiMap &map = getMap(type);
98 CtrlrMidiMapIterator it = map.find(getMidiNumberFromModulator(m, source));
99
100 if (it == map.end())
101 {
102 map.insert (CtrlrMidiMapPair(getMidiNumberFromModulator(m, source),m));
103 }
104 else
105 {
106 map[getMidiNumberFromModulator(m, source)].targets.add (m);
107 }
108}
109
110void CtrlrMidiInputComparatorSingle::addMatchTargetSysEx (CtrlrModulator *m)
111{

Callers

nothing calls this directly

Calls 6

getMidiTypeFromModulatorFunction · 0.85
findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected