Sets an initial value for the MIDI channel of the outgoing messages. Channel numbers greater than 16 will be wrapped around to stay within the 1-16 range. If there is no argument, the initial channel number is.
Common Box Attributes
In left-middle inlet: The number is stored as the velocity for either a note-on or a note-off message. If no number has been received yet, the velocity for note-ons is , and the velocity for note-offs is .
In right-middle inlet: The number is stored as the indicator of whether outgoing messages should be note-ons or note-offs. If the number is not 0, xnoteout will send out a note-on message. If the number is , xnoteout will send out a note-off message with a release velocity. If no number has been received yet, it is initially (note-on).
In right inlet: The number is stored as the channel for the MIDI message sent out by xnoteout. Channel numbers greater than 16 will be wrapped around to stay within the 1-16 range.
When a pitch value is received, a complete MIDI note-on or note-off message is sent out the outlet, byte-by-byte. Whereas a note-on with a velocity of 0 is most commonly used to indicate a note-off, xnoteout sends out the MIDI note-off command and uses the specified velocity as a release velocity.