|
Control Surface API
1.1.11
|
Public Member Functions | |
| void | setMidiCallback (Function callback) throws ControlSurfaceException |
| void | setSysexCallback (Function callback) throws ControlSurfaceException |
| NoteInput | createNoteInput (String name, String...masks) throws ControlSurfaceException |
Instances of this interface are used to setup handler functions for incoming MIDI messages from a specific MIDI hardware.
Definition at line 12 of file MidiIn.java.
| 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.
| name | the name of the note input as it appears in the track input choosers in Bitwig Studio |
| masks | a 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). |
| void setMidiCallback | ( | Function | callback | ) | throws ControlSurfaceException |
Registers a callback for receiving short (normal) MIDI messages on this MIDI input port.
| callback | a callback function that receives three integer parameters: 1. the status byte 2. the data1 value 2. the data2 value |
| ControlSurfaceException |
| void setSysexCallback | ( | Function | callback | ) | throws ControlSurfaceException |
Registers a callback for receiving sysex MIDI messages on this MIDI input port.
| callback | a callback function that takes a single string argument |
| ControlSurfaceException |