RedMixer:
Filter:
redSys/Classes (extension) | Red > redMixer

RedMixer
ExtensionExtension

create and hold multiple RedMixerChannel

Description

A mixer that can mix any number of channels (RedMixerChannel) into one or more subgroups.

Class Methods

.new

Arguments:

inputChannels

Array of input stereo channels. A matching array of RedMixerChannel channels will be created.

outputChannels

Array of output stereo channels. A matching array of RedMixerChannel mixers will be created (think subgroups).

group

nil boots the default server and creates a group after the defaultGroup.

NOTE: Passed in groups are not freed when this RedMixer instance is freed.
NOTE: Boot the server before passing in a group.
lag

For equalizer settings, balance and volume. In seconds.

archiving

.restoreFile

Reads back a redMixer with all settings from an archived instance. Also see -store.

NOTE: Call .init after this to initialize server side objects.

Arguments:

path

A file path as a string.

.restoreArchive

Similar to *restoreFile but directly takes an Archive as argument.

NOTE: Call .init after this to initialize server side objects.

Arguments:

archive

An Archive.

Instance Methods

.channels

An array of RedMixerChannel objects matching *new's inputChannels argument.

.cvs

Dictionary with all Ref objects. (used to be CV objects)

laglag time in seconds (linear)

.def

Should probably be private.

.free

Free synths and, if created, the internal group.

.gui

Create a RedMixerGUI.

Arguments:

position

A Point.

.group

The Group in use.

.inputChannels

Get or set the array of current inputChannels.

.isReady

true after the server is booted and the internal mixer is added and created.

.lag

Lag for all mixers and channels.

Arguments:

val

Time in seconds.

.mixer

Shortcut for mixers[0] as in the normal case only this one mixer is used (no subgroups). See -mixers.

.mixers

An array of RedMixerChannel objects matching *new's outputChannels argument.

.mute

Mute input channels.

Arguments:

val

1= mute all channels, 0= unmute

.outputChannels

Get or set the array of current outputChannels.

.solo

Solo input channel(s)

Arguments:

channel

Index of input channel. Can also be an array of indices.

archiving

.archive

Returns a dictionary with settings that will be archived. Normally it is better to use -store and write the archive to disk.

.restore

Load settings from a dictionary. Normally it is better to use *restoreFile and read the archive from disk.

Arguments:

archive

Current settings as a dictionary.

.store

Saves an instance as an archive to disk. All settings and effect inserts are stored. To read it back use *restoreFile.

Arguments:

path

A file path as a string.

Examples