Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

PortMidi.SetChannelMask

Filters incoming messages based on channel.

Component Version macOS Windows Linux Server iOS SDK
PortMidi 4.2 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "PortMidi.SetChannelMask"; StreamRef; Mask )   More

Parameters

Parameter Description Example
StreamRef The reference to the midi stream. You create those with PortMidi.OpenInput or PortMidi.OpenOutput and finally close them with PortMidi.Close. $stream
Mask The new mask. 1

Result

Returns OK or error.

Description

Filters incoming messages based on channel.
The mask is a 16-bit bitfield corresponding to appropriate channels.

Pass sum of the channel mask values you need:

ChannelMask Value
01
12
24
38
416
532
664
7128
8256
9512
101024
112048
124096
138192
1416384
1532767

See also

This function checks for a license.

Created 18th August 2014, last changed 18th August 2014


PortMidi.SendSysExHex - PortMidi.SetDataAvailableEvaluate