xbendout Reference

Format extra precision MIDI pitch bend messages

xbendout

Description

Formats messages which occupy both bytes of the MIDI pitch bend message. xbendout2 allows you to send the pitch bend data as two bytes from 0-127.

Examples

14-bit pitch bend value is formatted into a MIDI message, which is sent out byte-by-byte

Arguments

xbendout2 [symbol]

If the object is called xbendout2, there will be three inlets. The most significant byte of the pitch bend message is received in the left inlet, and the least significant (extra precision) byte is received in the middle inlet.

channel [int]

Optional

The number sets an initial value for the MIDI channel of the pitch bend messages. If there is no argument, the initial channel number is 1.

Attributes

Common Box Attributes

Messages

bang

Sends out a MIDI pitch bend message using the numbers currently stored in xbendout.

int

Arguments

input [int]
The number is a 14-bit pitch bend value to be formatted into a complete MIDI pitch bend message by xbendout.

  (inlet1)

Arguments

channel [int]
In right inlet: The number is stored as the MIDI channel for the pitch bend message sent out by xbendout. Channel numbers greater than 16 will be wrapped around to stay within the 1-16 range.

  (inlet2)

Arguments

channel [int]
The number is stored as the MIDI channel for the pitch bend message sent out by xbendout. Channel numbers greater than 16 will be wrapped around to stay within the 1-16 range.

list

Arguments

value [int]
channel [int]
The first number is a 14-bit pitch bend value, and the second number is the channel. Both numbers are stored and are formatted into a MIDI pitch bend message which is sent out the outlet.

Output

int

When a pitch bend value is received in the left inlet, the complete MIDI pitch bend message is sent out the outlet, byte-by-byte.

See Also

Name Description
MIDI MIDI
bendout
midiout
xbendin