MxChannelApp:
Filter:
Mx/Classes (extension) | Mx

MxChannelApp
ExtensionExtension

scripting object for an MxChannel, one channel in an Mx

Description

Add, remove, insert units. Mute, solo and change levels on the fader.

Instance Methods

.at

get the unit by slot number

Arguments:

i

slot number

Returns:

an MxUnitApp

.put

put an object (Instr, Ndef, Spline etc) in the slot, replacing anything that might be there

Arguments:

i

slot number

source

the object to add

Returns:

an MxUnitApp whose .source is the object you added

.removeAt

remove unit at the index

Arguments:

i

slot number

Returns:

this

.insertAt

insert object at the index, moving other units down. cables are connected by unit, not by the slot number, so nothing is disturbed

Arguments:

i

slot number

source

obejct to add

Returns:

MxUnitApp whose .source is the object you added

.units

gets an MxQuery of all units in the channel, not including any nil slots. Because some slots may be empty, the index numbers in the query set are not the same as the slot numbers.

Returns:

.add

add one or more objects to the end of the channel

Arguments:

... sources

one or more objects

Returns:

an MxUnitApp or an array of them

.dup

Duplicate the item from one slot to another. Connections are not preserved (yet).

Arguments:

fromIndex

integer

toIndex

integer

Returns:

MxUnitApp

.fader

the MxChannelFader is an audio unit with level, mute, solo and circuit breaker protection (bad values and sudden peaks). This returns that unit. You can connect to it: unit.out >> channel.fader

Returns:

MxChannelFader

.mute

Mute the channel fader

Returns:

this

.muted

is muted ?

Returns:

boolean

.unmute

Unmute the fader.

Returns:

this

.toggle

Toggle mute

Returns:

this

.solo

Solo fader

Returns:

this

.unsolo

Unsolo fader

Returns:

this

.soloed

is soloed ?

Returns:

boolean

.db

get or set level by dB

Arguments:

db

dB

Returns:

dB

.channelNumber

This objects current channelNumber. Note that you can freely rearrange channels so this does change.

Returns:

integer