You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #include "engine/Cable.hpp"
-
-
- namespace rack {
- namespace engine {
-
-
- void Cable::step() {
- Output *output = &outputModule->outputs[outputId];
- Input *input = &inputModule->inputs[inputId];
- // Match number of polyphonic channels to output port
- input->channels = output->channels;
- // Copy all voltages from output to input
- for (int i = 0; i < PORT_MAX_CHANNELS; i++) {
- input->voltages[i] = output->voltages[i];
- }
- }
-
-
- } // namespace engine
- } // namespace rack
|