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

Method getMidiChannel

Source/Core/CtrlrPanel/CtrlrPanel.cpp:1130–1150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1128}
1129
1130uint8 CtrlrPanel::getMidiChannel(const CtrlrPanelMidiChannel channelToGet)
1131{
1132 switch (channelToGet)
1133 {
1134 case panelMidiInputChannelDevice:
1135 return (deviceInputChannel.get());
1136
1137 case panelMidiOutputChannelDevice:
1138 return (deviceOutputChannel.get());
1139
1140 case panelMidiInputChannelHost:
1141 return (hostInputChannel.get());
1142
1143 case panelMidiOutputChannelHost:
1144 return (hostOutputChannel.get());
1145
1146 case panelMidiControllerChannel:
1147 return (controllerInputChannel.get());
1148 }
1149 return (0);
1150}
1151
1152void CtrlrPanel::setMidiChannel(const CtrlrPanelMidiChannel optionToSet, const uint8 value)
1153{

Callers 4

getMidiSummaryMethod · 0.80
processBlockMethod · 0.80
processMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected