A newer version of Max is available. Click here to access the latest version of the documentation

xbendin Reference

Interpret extra precision MIDI pitch bend values

xbendin

Description

Acts as a 14-bit pitch bend filter/processor and xbendin2 serves as a 2-byte pitch bend filter/processor.

Examples

Pitch bend values are sent out as a single number or as two separate bytes

Arguments

channel [int]

Optional

The number specifies a MIDI channel on which to recognize pitch bend messages. If there is no argument, xbendin recognizes pitch bend messages on all channels, and the channel number is sent out the extra outlet on the right.

xbendin2 [symbol]

Optional

Normally, xbendin sends pitch bend values out the left outlet as 14-bit values. If the object is called xbendin2, however, there will be an additional outlet. The most significant data byte of the message is sent out the leftmost outlet, and the least significant data byte is sent out the second outlet.

Attributes

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 or seq. MIDI pitch bend messages are recognized by xbendin, and the pitch bend data is sent out in full precision.

Output

int

The pitch bend value is sent out the left outlet of xbendin as a single 14-bit value. If the object is called xbendin2, there is an additional outlet. The most significant 7 bits are sent out the leftmost outlet, and the least significant (extra precision) 7 bits are sent out the second outlet. If there is no channel number specified as an argument (omni on), xbendin will have an extra outlet on the right, which will output the channel number of the incoming pitch bend message.

See Also

Name Description
MIDI MIDI
bendin
midiin
xbendout