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

stripnote

Filter out note-off messages, pass only note-on messages

Description

stripnote will only pass note-on messages detected as having any velocity above 0.

Arguments

None.

Messages

int MIDI-pitch-value [int]
In left inlet: The number is treated as a pitch value. If the velocity value currently held by stripnote is not 0, then the velocity is sent out the right outlet and the pitch is sent out the left outlet.
  (inlet1) MIDI-velocity [int]
In right inlet: The number is stored as a velocity to be paired with pitch numbers received in the left inlet.
float MIDI-pitch-value [float]
Converted to int.
  (inlet1) MIDI-velocity [float]
Converted to int. In right inlet: The number is stored as a velocity to be paired with pitch numbers received in the left inlet.

Information for box attributes common to all objects

Output

int: Out left outlet: The pitch value received in the left inlet is sent out, provided the velocity is not 0.

Out right outlet: The velocity value of a note-on pair is sent out, provided it is not 0.

Examples

Repeated pitch values and 0 velocities caused by note-off messages can be filtered out

See Also

Name Description
makenote Generate a note-off message following each note-on
sustain Hold note-off messages, output them on command
Max MIDI Tutorial 2: MIDI Note Management Max MIDI Tutorial 2: MIDI Note Management