midiout Reference

Transmit raw MIDI data

midiout

Description

Transmits raw MIDI data to a specified port.

Examples

MIDI bytes received in the inlet are transmitted out the specified port

Arguments

port [symbol]

Optional

Specifies the port (a-z) for transmitting MIDI data. If there is no argument, midiout transmits out port a (or the first output port listed in the MIDI Setup dialog.)

device [symbol]

Optional

The name of a MIDI output device may be used as the first argument to specify the port. The name 'none' can be used to prevent the object from transmitting MIDI messages on any port.

Attributes

matchport [int] (default: 0)

If the port argument doesn't match an existing port or device name, set the object's MIDI port to 'none'.

name [symbol]

Set the object's MIDI port based on a device name. The attribute will attempt to do a case-sensitive partial string match based on the attribute's value.

Common Box Attributes

Messages

int

Arguments

byte [int]
The number is transmitted as a byte of a MIDI message to the specified port.

float

Arguments

message [float]
Converted to int.

list

Arguments

bytes [list]
The numbers are transmitted sequentially as individual bytes of a MIDI message to the specified port.

anything

Arguments

port [list]
Performs the same function as port.

(mouse)

Double-clicking on a midiout object shows a pop-up menu for choosing a MIDI port or device.

port

Arguments

port [symbol]
The word port, followed by a letter a-z or the name of a MIDI output port or device, specifies the port used to transmit the MIDI messages. The word port is optional and may be omitted. The name 'none' can be used to prevent the object from transmitting MIDI messages on any port.

Output

(MIDI)

There are no outlets. The output is a byte of a MIDI message transmitted directly to the object's MIDI output port.

See Also

Name Description
Using Max with other applications Using Max with other applications
MIDI MIDI
midiformat
midiin
midiinfo
midiparse
midiselect
mpeconfig
mpeformat
mpeparse
noteout
polymidiin
sxformat
xbendout
xnoteout
Max MIDI Tutorial 1: Basic MIDI Max MIDI Tutorial 1: Basic MIDI