Difference between revisions of "ISKernel:midi (Object Type)"

From Lavish Software Wiki
Jump to navigation Jump to search
 
Line 2: Line 2:
 
{{ObjectType-Vitals|midi|[[Inner Space]]|none|midi|none|no|}}
 
{{ObjectType-Vitals|midi|[[Inner Space]]|none|midi|none|no|}}
 
Accesses the [[ISKernel:MIDI|MIDI]] system
 
Accesses the [[ISKernel:MIDI|MIDI]] system
 +
  
 
== Members ==
 
== Members ==
 
*[[ObjectType:uint|uint]] '''NumAttachedDevices''': Number of MIDI devices currently attached
 
*[[ObjectType:uint|uint]] '''NumAttachedDevices''': Number of MIDI devices currently attached
 
*[[ObjectType:jsonobject|jsonobject]] '''AttachedDevice['''#''']''': A JSON object describing the #th attached MIDI device (1-based)
 
*[[ObjectType:jsonobject|jsonobject]] '''AttachedDevice['''#''']''': A JSON object describing the #th attached MIDI device (1-based)
 +
*[[ObjectType:jsonarray|jsonarray]] '''AttachedDevices''': A JSON array describing all attached MIDI devices
 
*[[ISKernel:midiindevice (Object Type)|midiindevice]] '''InDevice['''#''']''': A MIDI In Device by its ID number (NOT the same number as Attached devices)
 
*[[ISKernel:midiindevice (Object Type)|midiindevice]] '''InDevice['''#''']''': A MIDI In Device by its ID number (NOT the same number as Attached devices)
 
*[[ISKernel:midiindevice (Object Type)|midiindevice]] '''InDevice['''portName''']''': A MIDI In Device by its port name (a value provided to the OpenDeviceIn method)
 
*[[ISKernel:midiindevice (Object Type)|midiindevice]] '''InDevice['''portName''']''': A MIDI In Device by its port name (a value provided to the OpenDeviceIn method)
 +
*[[ObjectType:jsonarray|jsonarray]] '''InDevices''': A JSON array describing all open MIDI In devices
 +
  
 
== Methods ==
 
== Methods ==
 
* '''OpenDeviceIn['''#''','''portName''']''': Opens the #th attached MIDI device (1-based), with controls mapped through [[LavishGUI 2]]. The specified portName is assigned to the device and can be used with the InDevice member
 
* '''OpenDeviceIn['''#''','''portName''']''': Opens the #th attached MIDI device (1-based), with controls mapped through [[LavishGUI 2]]. The specified portName is assigned to the device and can be used with the InDevice member
 
* '''OpenDeviceIn['''#''','''portName''','''object''','''method''']''': Opens the #th attached MIDI device (1-based), with controls mapped through a [[LavishScript]] object method. The specified portName is assigned to the device and can be used with the InDevice member
 
* '''OpenDeviceIn['''#''','''portName''','''object''','''method''']''': Opens the #th attached MIDI device (1-based), with controls mapped through a [[LavishScript]] object method. The specified portName is assigned to the device and can be used with the InDevice member
* '''OpenAllDevicesIn: Opens all MIDI Input devices, with controls mapped through [[LavishGUI 2]]. The port names will be generated as MIDI 1, MIDI 2, etc
+
* '''OpenAllDevicesIn''': Opens all MIDI In devices, with controls mapped through [[LavishGUI 2]]. The port names will be generated as MIDI 1, MIDI 2, etc
* '''CloseAllDevicesIn: Closes all open MIDI Input devices
+
* '''CloseAllDevicesIn''': Closes all open MIDI In devices
 +
 
  
 
== See Also ==
 
== See Also ==

Latest revision as of 21:06, 27 September 2019

Description

Object Type Vitals
midi
Defined By Inner Space
Inherits none
Reduces To midi
Variable Object Type none
Uses Sub-Types no
C/C++ Type

Accesses the MIDI system


Members

  • uint NumAttachedDevices: Number of MIDI devices currently attached
  • jsonobject AttachedDevice[#]: A JSON object describing the #th attached MIDI device (1-based)
  • jsonarray AttachedDevices: A JSON array describing all attached MIDI devices
  • midiindevice InDevice[#]: A MIDI In Device by its ID number (NOT the same number as Attached devices)
  • midiindevice InDevice[portName]: A MIDI In Device by its port name (a value provided to the OpenDeviceIn method)
  • jsonarray InDevices: A JSON array describing all open MIDI In devices


Methods

  • OpenDeviceIn[#,portName]: Opens the #th attached MIDI device (1-based), with controls mapped through LavishGUI 2. The specified portName is assigned to the device and can be used with the InDevice member
  • OpenDeviceIn[#,portName,object,method]: Opens the #th attached MIDI device (1-based), with controls mapped through a LavishScript object method. The specified portName is assigned to the device and can be used with the InDevice member
  • OpenAllDevicesIn: Opens all MIDI In devices, with controls mapped through LavishGUI 2. The port names will be generated as MIDI 1, MIDI 2, etc
  • CloseAllDevicesIn: Closes all open MIDI In devices


See Also