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:
Channel | Mask Value |
0 | 1 |
1 | 2 |
2 | 4 |
3 | 8 |
4 | 16 |
5 | 32 |
6 | 64 |
7 | 128 |
8 | 256 |
9 | 512 |
10 | 1024 |
11 | 2048 |
12 | 4096 |
13 | 8192 |
14 | 16384 |
15 | 32767 |
See also
This function checks for a license.
Created 18th August 2014, last changed 18th August 2014