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

Method processBypass

src/Bandit.cpp:121–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 }
120
121 void processBypass(const ProcessArgs& args) override {
122 const int maxPolyphony = std::max({1, inputs[ALL_INPUT].getChannels(), inputs[LOW_INPUT].getChannels(),
123 inputs[LOW_MID_INPUT].getChannels(), inputs[HIGH_MID_INPUT].getChannels(),
124 inputs[HIGH_INPUT].getChannels()});
125
126
127 for (int c = 0; c < maxPolyphony; c += 4) {
128 const float_4 inLow = inputs[LOW_INPUT].getPolyVoltageSimd<float_4>(c);
129 const float_4 inLowMid = inputs[LOW_MID_INPUT].getPolyVoltageSimd<float_4>(c);
130 const float_4 inHighMid = inputs[HIGH_MID_INPUT].getPolyVoltageSimd<float_4>(c);
131 const float_4 inHigh = inputs[HIGH_INPUT].getPolyVoltageSimd<float_4>(c);
132 const float_4 inAll = inputs[ALL_INPUT].getPolyVoltageSimd<float_4>(c);
133
134 // bypass sums all inputs to the output
135 outputs[MIX_OUTPUT].setVoltageSimd<float_4>(inLow + inLowMid + inHighMid + inHigh + inAll, c);
136 }
137
138 outputs[MIX_OUTPUT].setChannels(maxPolyphony);
139 }
140
141
142 void process(const ProcessArgs& args) override {

Callers

nothing calls this directly

Calls 1

getChannelsMethod · 0.80

Tested by

no test coverage detected