| 85 | } |
| 86 | |
| 87 | void 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 | |
| 110 | void CtrlrMidiInputComparatorSingle::addMatchTargetSysEx (CtrlrModulator *m) |
| 111 | { |
nothing calls this directly
no test coverage detected