Control Surface API  1.1.11
NoteInput Interface Reference

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

Detailed Description

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.

Since:
Bitwig Studio 1.0

Definition at line 12 of file NoteInput.java.


Member Function Documentation

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.

Parameters:
channelthe MIDI channel to map, range [0..15]
expressionthe note-expression to map for the given MIDI channel
pitchRangethe pitch mapping range in semitones, values must be in the range [1..24]. This parameter is ignored for non-pitch expressions.
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0
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.

Parameters:
statusthe status byte of the MIDI message
data0the data0 part of the MIDI message
data1the data1 part of the MIDI message
Since:
Bitwig Studio 1.0
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.

Parameters:
tablean array which should contain 128 entries. Each entry should be a note value in the range [0..127] or -1 in case of filtering.
Since:
Bitwig Studio 1.0
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.

Parameters:
shouldConsumeEvents`true` if note events should be consumed, `false` of the events should be additionally sent to the callback registered via MidiIn#setMidiCallback
Since:
Bitwig Studio 1.0
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.

Parameters:
tablean array which should contain 128 entries. Each entry should be a note value in the range [0..127] or -1 in case of filtering.
Since:
Bitwig Studio 1.0

List of all members.


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