Skip to content
This repository

server tweaks #662

Closed
wants to merge 1 commit into from

2 participants

Tim Blechmann Julian Rohrhuber
Tim Blechmann

hi,

this commit introduces two changes:

  • default to 2 channels instead of 8 (most people will only use a stereo setup, anyway)
  • by default, record all output channels

thoughts?

Julian Rohrhuber
Owner
Tim Blechmann

pushed manually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Nov 23, 2012
Tim Blechmann timblechmann class library: Server - match option.numOutputBusChannels and recChan…
…nels

Signed-off-by: Tim Blechmann <tim@klingt.org>
3cd0af6
This page is out of date. Refresh to see the latest.
2  HelpSource/Classes/Server.schelp
@@ -542,7 +542,7 @@ method:: recordNode
542 542 Returns:: the current recording synth so that it can be used as a target. This should only be necessary for nodes which are not created in the default group.
543 543
544 544 method:: recChannels
545   -Get/set the number of channels (int) to record. The default is two. Must be called strong::before:: prepareForRecord.
  545 +Get/set the number of channels (int) to record. Is automatically set to the value of link::Classes/ServerOptions#-numOutputBusChannels:: when booting the server. Must be called strong::before:: prepareForRecord.
546 546
547 547 method:: recHeaderFormat
548 548 Get/set the header format (string) of the output file. The default is "aiff". Must be called strong::before:: prepareForRecord.
4 HelpSource/Classes/ServerOptions.schelp
@@ -91,10 +91,10 @@ method:: numControlBusChannels
91 91 The number of internal control rate busses. The default is 4096.
92 92
93 93 method:: numInputBusChannels
94   -The number of audio input bus channels. This need not correspond to the number of hardware inputs. The default is 8.
  94 +The number of audio input bus channels. This need not correspond to the number of hardware inputs. The default is 2.
95 95
96 96 method:: numOutputBusChannels
97   -The number of audio output bus channels. This need not correspond to the number of hardware outputs (this can be useful for instance in the case of recording). The default is 8.
  97 +The number of audio output bus channels. This need not correspond to the number of hardware outputs (this can be useful for instance in the case of recording). The default is 2.
98 98
99 99 method:: numRGens
100 100 The number of seedable random number generators. The default is 64.
9 SCClassLibrary/Common/Control/Server.sc
@@ -3,8 +3,8 @@ ServerOptions
3 3 // order of variables is important here. Only add new instance variables to the end.
4 4 var <numAudioBusChannels=128;
5 5 var <>numControlBusChannels=4096;
6   - var <numInputBusChannels=8;
7   - var <numOutputBusChannels=8;
  6 + var <numInputBusChannels=2;
  7 + var <numOutputBusChannels=2;
8 8 var numBuffers=1026;
9 9
10 10 var <>maxNodes=1024;
@@ -647,6 +647,11 @@ Server {
647 647 bootNotifyFirst = true;
648 648 this.doWhenBooted({
649 649 serverBooting = false;
  650 + if (recChannels.notNil and: (recChannels != options.numOutputBusChannels)) {
  651 + "Resetting recChannels to %".format(options.numOutputBusChannels).inform
  652 + };
  653 + recChannels = options.numOutputBusChannels;
  654 +
650 655 if (sendQuit.isNil) {
651 656 sendQuit = this.inProcess or: {this.isLocal};
652 657 };

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.