CutGroup:
Filter:
BBCut/Classes (extension) | Libraries > BBCut > Cut synths

CutGroup
ExtensionExtension

A group in BBCut2

Description

The CutGroup class deals with the execution graph and rendering busses on the Server. By default, a Group.new and a Bus.audio(Server.default,44100,1) will be created for you, but you may explicitly pass in Group and Bus instances. Automatically created Bus and Group objects will be freed on .free, but any passed in Group and Bus objects are the user's responsibility.

The Array of CutSynths will be rendered to the group in the order they are in the array. However, CutGroup makes subgroups for you for the source renderers (ie CutBuf1, CutStream1), the fx units (ie CutComb1, CutBRF1) and the CutMixer, to try to avoid execution order problems. It is good practise to try to anticipate problems however and put things in the order they would run from left to right.

A default CutMixer will be created automatically when one is not passed in in the array of cutsynths. The default is full volume central pan stereo rendering to output bus 0 and 1.

There are .add and .remove instance methods to add and remove cutsynths from the cutgroup on the fly- see example below.

Class Methods

.new

Arguments:

cutsynths

an Array of CutSynths, though this argument can also cope with being passed a CutSynth directly.

group

A Group instance.

bus

A Bus instance.

numChannels

If 1, rendering is mono until the final CutMixer. If 2, rendering is stereo, and there is no pan functionality in the final CutMixer. The CutMixer will automatically be configured appropriately based on the numChannels variable in the CutGroup.

Examples