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

Method addMatchTarget

Source/MIDI/CtrlrMidiInputComparator.cpp:47–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void CtrlrMidiInputComparator::addMatchTarget (CtrlrModulator *modulatorToAdd)
48{
49 const CtrlrMidiMessageType type = modulatorToAdd->getMidiMessage(source).getMidiMessageType();
50
51 switch (type)
52 {
53 case CC:
54 case Aftertouch:
55 case NoteOn:
56 case NoteOff:
57 case ChannelPressure:
58 case ProgramChange:
59 case PitchWheel:
60 case SysEx:
61 comparatorSingle.addMatchTarget (modulatorToAdd);
62 break;
63
64 case Multi:
65 comparatorMulti.addMatchTarget (modulatorToAdd);
66 break;
67
68 case None:
69 break;
70
71 default:
72 //_WRN("CtrlrMidiInputComparator::addMatchTarget an unknown midi type found="+String((int)type));
73 break;
74 }
75}
76
77void CtrlrMidiInputComparator::panelEditModeChanged (const bool _panelEditMode)
78{

Callers

nothing calls this directly

Calls 1

getMidiMessageTypeMethod · 0.80

Tested by

no test coverage detected