Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

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

💬 Ask a question or report a problem