stripnote Reference

Filter out note-off messages

stripnote

Description

Only pass note-on messages: those having any velocity above 0.

Examples

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

Arguments

None.

Attributes

Common Box Attributes

Messages

int

Arguments

pitch [int]
The incoming 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)

Arguments

velocity [int]
In right inlet: The number is stored as a velocity to be paired with pitch numbers received in the left inlet.

float

Arguments

pitch [float]
Converted to int.

  (inlet1)

Arguments

velocity [float]
Converted to int.

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.

See Also

Name Description
makenote
sustain
Max MIDI Tutorial 2: MIDI Note Management Max MIDI Tutorial 2: MIDI Note Management