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.

22 lines
463B

  1. #include "engine/Cable.hpp"
  2. namespace rack {
  3. namespace engine {
  4. void Cable::step() {
  5. Output *output = &outputModule->outputs[outputId];
  6. Input *input = &inputModule->inputs[inputId];
  7. // Match number of polyphonic channels to output port
  8. input->channels = output->channels;
  9. // Copy all voltages from output to input
  10. for (int i = 0; i < PORT_MAX_CHANNELS; i++) {
  11. input->voltages[i] = output->voltages[i];
  12. }
  13. }
  14. } // namespace engine
  15. } // namespace rack