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

Method processBypass

src/engine/Module.cpp:99–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97
98
99void Module::processBypass(const ProcessArgs& args) {
100 for (BypassRoute& bypassRoute : bypassRoutes) {
101 // Route input voltages to output
102 Input& input = inputs[bypassRoute.inputId];
103 Output& output = outputs[bypassRoute.outputId];
104 int channels = input.getChannels();
105 for (int c = 0; c < channels; c++) {
106 float v = input.getVoltage(c);
107 output.setVoltage(v, c);
108 }
109 output.setChannels(channels);
110 }
111}
112
113
114json_t* Module::toJson() {

Callers

nothing calls this directly

Calls 4

getVoltageMethod · 0.80
setVoltageMethod · 0.80
getChannelsMethod · 0.45
setChannelsMethod · 0.45

Tested by

no test coverage detected