Difference between revisions of "Luamidi:sendMessage"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2018.12<br/> '''Class:''' Lua Midi<br/> === Description === xxx. <source lang="lua"> luamidi:sendMessage() </source> {{LuaMidi}}")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(6 intermediate revisions by 2 users not shown)
Line 4: Line 4:
  
 
=== Description ===
 
=== Description ===
xxx.
+
Sends a message to chosen OUT port.
<source lang="lua">
+
<syntaxhighlight lang="lua">
luamidi:sendMessage()
+
luamidi.sendMessage(i, s, n, v, ch)
</source>
+
</syntaxhighlight>
 +
Sends a message to OUT port i in the following format: s, n, v (status, note, velocity). You can optionally set ch (the channel). Note that channel is added to the status, so the above with some value ch set is essentially equivalent to luamidi.sendMessage(i, s+ch, n, v)
 +
For explanation see [https://www.recordingblogs.com/wiki/midi-event midi messages].
 +
 
  
 
{{LuaMidi}}
 
{{LuaMidi}}

Latest revision as of 15:30, 13 July 2023

Available since: Gideros 2018.12
Class: Lua Midi

Description

Sends a message to chosen OUT port.

luamidi.sendMessage(i, s, n, v, ch)

Sends a message to OUT port i in the following format: s, n, v (status, note, velocity). You can optionally set ch (the channel). Note that channel is added to the status, so the above with some value ch set is essentially equivalent to luamidi.sendMessage(i, s+ch, n, v) For explanation see midi messages.