Control Surface API  1.1.11
MidiIn Interface Reference

Public Member Functions

void setMidiCallback (Function callback) throws ControlSurfaceException
void setSysexCallback (Function callback) throws ControlSurfaceException
NoteInput createNoteInput (String name, String...masks) throws ControlSurfaceException

Detailed Description

Instances of this interface are used to setup handler functions for incoming MIDI messages from a specific MIDI hardware.

Since:
Bitwig Studio 1.0

Definition at line 12 of file MidiIn.java.


Member Function Documentation

NoteInput createNoteInput ( String  name,
String...  masks 
) throws ControlSurfaceException

Creates a note input that appears in the track input choosers in Bitwig Studio. This method must be called within the `init()` function of the script. The messages matching the given mask parameter will be fed directly to the application, and are not processed by the script.

Parameters:
namethe name of the note input as it appears in the track input choosers in Bitwig Studio
masksa filter string formatted as hexadecimal value with `?` as wildcard. For example `80????` would match note-off on channel 1 (0). When this parameter is {}, a standard filter will be used to forward note-related messages on channel 1 (0).
Returns:
the object representing the requested note input
Since:
Bitwig Studio 1.0
void setMidiCallback ( Function  callback) throws ControlSurfaceException

Registers a callback for receiving short (normal) MIDI messages on this MIDI input port.

Parameters:
callbacka callback function that receives three integer parameters: 1. the status byte 2. the data1 value 2. the data2 value
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0
void setSysexCallback ( Function  callback) throws ControlSurfaceException

Registers a callback for receiving sysex MIDI messages on this MIDI input port.

Parameters:
callbacka callback function that takes a single string argument
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0

List of all members.


The documentation for this interface was generated from the following file:
 All Classes Functions Variables