Luamidi:noteOn: Difference between revisions

From GiderosMobile
Keszegh (talk | contribs)
m Text replacement - "</source>" to "</syntaxhighlight>"
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
Sends a Note On message to chosen OUT port.
Sends a Note On message to chosen OUT port.


<source lang="lua">
<syntaxhighlight lang="lua">
luamidi.noteOn(i, n, v, ch)
luamidi.noteOn(i, n, v, ch)
</source>
</syntaxhighlight>


Sends a note on message to OUT port i with note n. You can also set the velocity (v) and channel (ch), these are optional.
Sends a note on message to OUT port i with note n. You can also set the velocity (v) and channel (ch), these are optional.

Latest revision as of 13:30, 13 July 2023

Available since: Gideros 2018.12
Class: Lua Midi

Description

Sends a Note On message to chosen OUT port.

luamidi.noteOn(i, n, v, ch)

Sends a note on message to OUT port i with note n. You can also set the velocity (v) and channel (ch), these are optional. This is essentially equivalent to luamidi.sendMessage(144, i, n, v or 127, ch).