Skip to content

Commit

Permalink
improve list generation
Browse files Browse the repository at this point in the history
  • Loading branch information
cleary committed Mar 2, 2021
1 parent a76fb50 commit 677a9b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/startup.scd.template
Expand Up @@ -31,7 +31,7 @@ s.reboot { // server options are only updated on reboot
{% if sc_option_numOutputBusChannels == 2 %}
~dirt.start(57120, 0 ! 12); // start listening on port 57120, create two busses each sending audio to channel 0
{% else %}
~dirt.start(57120, [{% for i in range(0, sc_option_numOutputBusChannels, 2 ) %}{{ i }}{% if i != sc_option_numOutputBusChannels - 2 %}, {%endif %}{% endfor %}]); // start listening on port 57120, create {{ (sc_option_numOutputBusChannels/2)|int }} stereo busses
~dirt.start(57120, {{ range(0, sc_option_numOutputBusChannels, 2 ) | list }} ); // start listening on port 57120, create {{ (sc_option_numOutputBusChannels/2)|int }} stereo busses
{% endif %}

// optional, enable feedforward vu meter
Expand Down

0 comments on commit 677a9b7

Please sign in to comment.