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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
PortMidi.SetChannelMask
Filters incoming messages based on channel.
| Component | Version | macOS | Windows | Linux | Server | FileMaker 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
Created 18th August 2014, last changed 18th August 2014
PortMidi.SendSysExHex - PortMidi.SetDataAvailableEvaluate
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins