xctlin Reference

Output received 14-bit MIDI control values

xctlin

Description

Output the value from a specific 14-bit controller pair and MIDI channel.

Arguments

ctrllr-channel [list]

Optional

The initial argument is a single high resolution controller number (in the range 0-31) to be recognized by xctlin. If there is no controller number, or if the argument is a negative number, xctlin recognizes all high resolution controller numbers. If a single controller number is specified in the argument, the outlet which normally sends the controller number is unnecessary, and is not created.

Following the controller number argument is a single channel number on which to receive control messages. If the channel argument is not present, xctlin receives control messages on all channels. In order for this argument to be used, a controller number argument must precede it. To specify a channel number without specifying a controller number, use -1 for the controller number. The channel number is clipped to the range 1-16.

Attributes

lsbfirst [int] (default: 0)

When enabled, the LSB group of bytes in the incoming continuous controller messages will be parsed first, followed by the MSB group. This ordering is unusual, but is required by some MIDI hardware.

Common Box Attributes

Messages

int

Arguments

input [int]
The numbers are individual bytes of a MIDI message stream, received from an object such as midiin.

list

Arguments

input [list]
The numbers are bytes of a MIDI message stream, received from an object such as midiin.

set

Arguments

controller [int]
The message set without any arguments, or with an argument of -1, will cause xctlin to output incoming 14-bit MIDI continuous controller messages from any high resolution controller. An argument between 0 and 31 (the MIDI high resolution controller numbers) will cause xctlin to only output incoming 14-bit MIDI continuous controller messages from the controller specified.

Output

int

Out left outlet: The number is the value of an incoming MIDI control change message as a single 14-bit value.

If a specific controller number is not specified as an argument, the controller number is sent out the 2nd outlet.

If a specific channel number is not included in the argument, the channel number is sent out an additional, right, outlet.

See Also

Name Description
midiin
ctlin
xctlout
xbendin
xnotein
nrpnin
rpnin