Difference between revisions of "Lua Midi"

From GiderosMobile
Line 19: Line 19:
 
[[luamidi:enumerateinports]] ''xxx''<br/><!--GIDEROSMTD:luamidi:enumerateinports() xxx-->
 
[[luamidi:enumerateinports]] ''xxx''<br/><!--GIDEROSMTD:luamidi:enumerateinports() xxx-->
 
[[luamidi:enumerateoutports]] ''xxx''<br/><!--GIDEROSMTD:luamidi:enumerateoutports() xxx-->
 
[[luamidi:enumerateoutports]] ''xxx''<br/><!--GIDEROSMTD:luamidi:enumerateoutports() xxx-->
[[luamidi:getInPortName]] ''xxx''<br/><!--GIDEROSMTD:luamidi:getInPortName() xxx-->
+
[[luamidi:getInPortName]] ''gets the Midi IN port name''<br/><!--GIDEROSMTD:luamidi:getInPortName() gets the Midi IN port name-->
 
[[luamidi:getMessage]] ''xxx''<br/><!--GIDEROSMTD:luamidi:getMessage() xxx-->
 
[[luamidi:getMessage]] ''xxx''<br/><!--GIDEROSMTD:luamidi:getMessage() xxx-->
[[luamidi:getOutPortName]] ''xxx''<br/><!--GIDEROSMTD:luamidi:getOutPortName() xxx-->
+
[[luamidi:getOutPortName]] ''gets the Midi OUT port name''<br/><!--GIDEROSMTD:luamidi:getOutPortName() gets the Midi OUT port name-->
 
[[luamidi:getinportcount]] ''gets the number of Midi IN ports''<br/><!--GIDEROSMTD:luamidi:getinportcount() gets the number of Midi IN ports-->
 
[[luamidi:getinportcount]] ''gets the number of Midi IN ports''<br/><!--GIDEROSMTD:luamidi:getinportcount() gets the number of Midi IN ports-->
 
[[luamidi:getoutportcount]] ''gets the number of Midi OUT ports''<br/><!--GIDEROSMTD:luamidi:getoutportcount() gets the number of Midi OUT ports-->
 
[[luamidi:getoutportcount]] ''gets the number of Midi OUT ports''<br/><!--GIDEROSMTD:luamidi:getoutportcount() gets the number of Midi OUT ports-->
 
[[luamidi:noteOff]] ''xxx''<br/><!--GIDEROSMTD:luamidi:noteOff() xxx-->
 
[[luamidi:noteOff]] ''xxx''<br/><!--GIDEROSMTD:luamidi:noteOff() xxx-->
 
[[luamidi:noteOn]] ''xxx''<br/><!--GIDEROSMTD:luamidi:noteOn() xxx-->
 
[[luamidi:noteOn]] ''xxx''<br/><!--GIDEROSMTD:luamidi:noteOn() xxx-->
[[luamidi:openin]] ''xxx''<br/><!--GIDEROSMTD:luamidi:openin() xxx-->
+
[[luamidi:openin]] ''opens the Midi IN port''<br/><!--GIDEROSMTD:luamidi:openin() opens the Midi IN port-->
[[luamidi:openout]] ''xxx''<br/><!--GIDEROSMTD:luamidi:openout() xxx-->
+
[[luamidi:openout]] ''opens the Midi OUT port''<br/><!--GIDEROSMTD:luamidi:openout() opens the Midi OUT port-->
 
[[luamidi:sendMessage]] ''xxx''<br/><!--GIDEROSMTD:luamidi:sendMessage() xxx-->
 
[[luamidi:sendMessage]] ''xxx''<br/><!--GIDEROSMTD:luamidi:sendMessage() xxx-->
[[luamidi:setQueueSizeLimit]] ''xxx''<br/><!--GIDEROSMTD:luamidi:setQueueSizeLimit() xxx-->
+
[[luamidi:setQueueSizeLimit]] ''sets the Midi queue size limit''<br/><!--GIDEROSMTD:luamidi:setQueueSizeLimit() sets the Midi queue size limit-->
  
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|

Revision as of 08:28, 24 March 2022

Supported platforms: Platform mac.pngPlatform pc.png
Available since: Gideros 2018.12

Description

Provides a simple interface for MIDI I/O.

To add Midi support to your application you call:

require "luamidi"

Methods

luamidi:base0 xxx
luamidi:base1 xxx
luamidi:enumerateinports xxx
luamidi:enumerateoutports xxx
luamidi:getInPortName gets the Midi IN port name
luamidi:getMessage xxx
luamidi:getOutPortName gets the Midi OUT port name
luamidi:getinportcount gets the number of Midi IN ports
luamidi:getoutportcount gets the number of Midi OUT ports
luamidi:noteOff xxx
luamidi:noteOn xxx
luamidi:openin opens the Midi IN port
luamidi:openout opens the Midi OUT port
luamidi:sendMessage xxx
luamidi:setQueueSizeLimit sets the Midi queue size limit

Events

Constants