MCPcopy Create free account
hub / github.com/VCVRack/Rack / getChannelName

Method getChannelName

src/midi.cpp:151–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151std::string Port::getChannelName(int channel) {
152 if (channel < 0)
153 return string::translate("midi.allChannels");
154 else
155 return string::f(string::translate("midi.channelNum"), channel + 1);
156}
157
158json_t* Port::toJson() {
159 json_t* rootJ = json_object();

Callers 2

appendMidiChannelMenuFunction · 0.80
stepMethod · 0.80

Calls 2

translateFunction · 0.85
fFunction · 0.70

Tested by

no test coverage detected