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

Method setChannel

include/midi.hpp:40–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 return bytes[0] & 0xf;
39 }
40 void setChannel(uint8_t channel) {
41 if (bytes.size() < 1)
42 return;
43 bytes[0] = (bytes[0] & 0xf0) | (channel & 0xf);
44 }
45
46 uint8_t getStatus() const {
47 if (bytes.size() < 1)

Callers 4

setClockMethod · 0.45
setStartMethod · 0.45
setContinueMethod · 0.45
setStopMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected