|
Control Surface API
1.1.11
|
Classes | |
| enum | NoteExpression |
Public Member Functions | |
| void | setShouldConsumeEvents (boolean shouldConsumeEvents) throws ControlSurfaceException |
| void | setKeyTranslationTable (Object[] table) throws ControlSurfaceException |
| void | setVelocityTranslationTable (Object[] table) throws ControlSurfaceException |
| void | assignPolyphonicAftertouchToExpression (int channel, NoteExpression expression, int pitchRange) throws ControlSurfaceException |
| void | sendRawMidiEvent (int status, int data0, int data1) throws ControlSurfaceException |
Instances of this interface implement note input functionality used for recording notes in Bitwig Studio and for playing the instruments in tracks on hardware keyboards. In Bitwig Studio the note inputs are shown int the input choosers of Bitwig Studio tracks.
Definition at line 12 of file NoteInput.java.
| void assignPolyphonicAftertouchToExpression | ( | int | channel, |
| NoteExpression | expression, | ||
| int | pitchRange | ||
| ) | throws ControlSurfaceException |
Assigns polyphonic aftertouch MIDI messages to the specified note expression. Multi-dimensional control is possible by calling this method several times with different MIDI channel parameters. If a key translation table is configured by calling setKeyTranslationTable, that table is used for polyphonic aftertouch as well.
| channel | the MIDI channel to map, range [0..15] |
| expression | the note-expression to map for the given MIDI channel |
| pitchRange | the pitch mapping range in semitones, values must be in the range [1..24]. This parameter is ignored for non-pitch expressions. |
| ControlSurfaceException |
| void sendRawMidiEvent | ( | int | status, |
| int | data0, | ||
| int | data1 | ||
| ) | throws ControlSurfaceException |
Sends MIDI data directly to the note input. This will bypass both the event filter and translation tables. The MIDI channel of the message will be ignored.
| status | the status byte of the MIDI message |
| data0 | the data0 part of the MIDI message |
| data1 | the data1 part of the MIDI message |
| void setKeyTranslationTable | ( | Object[] | table | ) | throws ControlSurfaceException |
Specifies a translation table which defines the actual key value (0-127) of notes arriving in Bitwig Studio for each note key potentially received from the hardware. This is used for note-on/off and polyphonic aftertouch events. Specifying a value of `-1` for a key means that notes with the key value will be filtered out.
Typically this method is used to implement transposition or scale features in controller scripts. By default an identity transform table is configured, which means that all incoming MIDI notes keep their original key value when being sent into Bitwig Studio.
| table | an array which should contain 128 entries. Each entry should be a note value in the range [0..127] or -1 in case of filtering. |
| void setShouldConsumeEvents | ( | boolean | shouldConsumeEvents | ) | throws ControlSurfaceException |
Specifies if the note input should consume MIDI notes, or in other words if it should prevent forwarding incoming notes to the MIDI callback registered in MidiIn#setMidiCallback. This setting is `true` by default.
| shouldConsumeEvents | `true` if note events should be consumed, `false` of the events should be additionally sent to the callback registered via MidiIn#setMidiCallback |
| void setVelocityTranslationTable | ( | Object[] | table | ) | throws ControlSurfaceException |
Specifies a translation table which defines the actual velocity value (0-127) of notes arriving in Bitwig Studio for each note velocity potentially received from the hardware. This is used for note-on events only.
Typically this method is used to implement velocity curves or fixed velocity mappings in controller scripts. By default an identity transform table is configured, which means that all incoming MIDI notes keep their original velocity when being sent into Bitwig Studio.
| table | an array which should contain 128 entries. Each entry should be a note value in the range [0..127] or -1 in case of filtering. |