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.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Sends a midi message.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
PortMidi | 4.2 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example | Flags |
---|---|---|---|
StreamRef | The reference to the midi stream. You create those with PortMidi.OpenInput or PortMidi.OpenOutput and finally close them with PortMidi.Close. | $stream | |
Status | The Midi status code. | 144 | |
Data1 | The first data byte. | 4*12+0 | |
Data2 | The second data bytes. | 127 | |
Timestamp | The timestamp. If zero or not provided, note is sent immediately. | 0 | Optional |
Returns OK or error.
Press down a C note:
MBS( "PortMidi.SendMessage"; $StreamRef; 144; 4*12+0; 127 )
Release a C note:
MBS( "PortMidi.SendMessage"; $StreamRef; 128; 4*12+0; 127 )
Created 18th August 2014, last changed 3th April 2021
PortMidi.Rescan - PortMidi.SendMessageRaw
Feedback: Report problem or ask question.