Control Surface API  2.2.2
Clip Interface Reference
Inheritance diagram for Clip:

Public Member Functions

void scrollToKey (int key)
 
void scrollKeysPageUp ()
 
void scrollKeysPageDown ()
 
void scrollKeysStepUp ()
 
void scrollKeysStepDown ()
 
void scrollToStep (int step)
 
void scrollStepsPageForward ()
 
void scrollStepsPageBackwards ()
 
void scrollStepsStepForward ()
 
void scrollStepsStepBackwards ()
 
BooleanValue canScrollKeysUp ()
 
void addCanScrollKeysUpObserver (BooleanValueChangedCallback callback)
 
BooleanValue canScrollKeysDown ()
 
void addCanScrollKeysDownObserver (BooleanValueChangedCallback callback)
 
BooleanValue canScrollStepsBackwards ()
 
void addCanScrollStepsBackwardsObserver (BooleanValueChangedCallback callback)
 
BooleanValue canScrollStepsForwards ()
 
void addCanScrollStepsForwardObserver (BooleanValueChangedCallback callback)
 
void toggleStep (int x, int y, int insertVelocity)
 
void setStep (int x, int y, int insertVelocity, double insertDuration)
 
void clearStep (int x, int y)
 
void clearSteps (int y)
 
void clearSteps ()
 
void selectStepContents (int x, int y, boolean clearCurrentSelection)
 
void setStepSize (double lengthInBeatTime)
 
void addStepDataObserver (StepDataChangedCallback callback)
 
IntegerValue playingStep ()
 
void addPlayingStepObserver (IntegerValueChangedCallback callback)
 
void setName (String name)
 
SettableBooleanValue getShuffle ()
 
SettableRangedValue getAccent ()
 
SettableBeatTimeValue getPlayStart ()
 
SettableBeatTimeValue getPlayStop ()
 
SettableBooleanValue isLoopEnabled ()
 
SettableBeatTimeValue getLoopStart ()
 
SettableBeatTimeValue getLoopLength ()
 
void addColorObserver (ColorValueChangedCallback callback)
 
SettableColorValue color ()
 
void duplicate ()
 
void duplicateContent ()
 
void transpose (int semitones)
 
void quantize (double amount)
 
Track getTrack ()
 
- Public Member Functions inherited from ObjectProxy
BooleanValue exists ()
 
BooleanValue createEqualsValue (ObjectProxy other)
 
- Public Member Functions inherited from Subscribable
boolean isSubscribed ()
 
void setIsSubscribed (boolean value)
 
void subscribe ()
 
void unsubscribe ()
 

Detailed Description

An interface that provides access to the contents of a clip in Bitwig Studio.

The note content of the clip is exposed in terms of steps and keys, mainly targeted to x-y-grid applications such as step sequencers.

Since
API version 1

Definition at line 17 of file Clip.java.

Member Function Documentation

void addCanScrollKeysDownObserver ( BooleanValueChangedCallback  callback)

Registers an observer that reports if the note grid keys can be scrolled further down.

Parameters
callbacka callback function that receives a single boolean parameter.
Since
API version 1
Deprecated:
Use canScrollKeysDown() instead.
void addCanScrollKeysUpObserver ( BooleanValueChangedCallback  callback)

Registers an observer that reports if the note grid keys can be scrolled further up.

Parameters
callbacka callback function that receives a single boolean parameter.
Since
API version 1
Deprecated:
Use canScrollKeysUp() instead.
void addCanScrollStepsBackwardsObserver ( BooleanValueChangedCallback  callback)

Registers an observer that reports if the note grid steps can be scrolled backwards.

Parameters
callbacka callback function that receives a single boolean parameter.
Since
API version 1
Deprecated:
Use canScrollStepsBackwards() instead.
void addCanScrollStepsForwardObserver ( BooleanValueChangedCallback  callback)

Registers an observer that reports if the note grid keys can be scrolled forward.

Parameters
callbacka callback function that receives a single boolean parameter.
Since
API version 1
Deprecated:
Use canScrollStepsForwards() instead.
void addColorObserver ( ColorValueChangedCallback  callback)

Registers an observer that reports the clip color.

Parameters
callbacka callback function that receives three parameters: 1. the red coordinate of the RBG color value, 2. the green coordinate of the RBG color value, and 3. the blue coordinate of the RBG color value
Since
API version 1
Deprecated:
use color() instead.
void addPlayingStepObserver ( IntegerValueChangedCallback  callback)

Registers an observer that reports note grid cells as they get played by the sequencer.

Parameters
callbackA callback function that receives a single integer parameter, which reflects the step coordinate that is played, or -1 if no step is associated with the current playback position.
Since
API version 1
Deprecated:
Use playingStep() instead.
void addStepDataObserver ( StepDataChangedCallback  callback)

Registers an observer that reports which note grid steps/keys contain notes.

Parameters
callbackA callback function that receives three parameters: 1. the x (step) coordinate within the note grid (integer), 2. the y (key) coordinate within the note grid (integer), and 3. an integer value that indicates if the step is empty (0) or if a note continues playing (1) or starts playing (2).
Since
API version 1
BooleanValue canScrollKeysDown ( )

Value that reports if the note grid keys can be scrolled further down.

Since
API version 2
BooleanValue canScrollKeysUp ( )

Value that reports if the note grid keys can be scrolled further up.

Since
API version 2
BooleanValue canScrollStepsBackwards ( )

Value that reports if the note grid if the note grid steps can be scrolled backwards.

Since
API version 2
BooleanValue canScrollStepsForwards ( )

Value that reports if the note grid if the note grid steps can be scrolled forwards.

Since
API version 2
void clearStep ( int  x,
int  y 
)

Removes the note in the grid cell specified by the given x and y arguments. Calling this method does nothing in case no note exists at the given x-y-coordinates.

Parameters
xthe x position within the note grid, defining the step/time of the target note
ythe y position within the note grid, defining the key of the target note
Since
API version 1
void clearSteps ( int  y)

Removes all notes in the grid row specified by the given y argument.

Parameters
ythe y position within the note grid, defining the key of the target note
Since
API version 1
void clearSteps ( )

Removes all notes in the grid.

Since
API version 1
SettableColorValue color ( )

Get the color of the clip.

Since
API version 2
void duplicate ( )

Duplicates the clip.

Since
API version 1
void duplicateContent ( )

Duplicates the content of the clip.

Since
API version 1
SettableRangedValue getAccent ( )

Returns accent setting of the clip.

Returns
the ranged value object that represents the clips accent setting.
Since
API version 1
SettableBeatTimeValue getLoopLength ( )

Returns the loop length of the clip in beat time.

Returns
the beat time object that represents the clips loop length.
Since
API version 1
SettableBeatTimeValue getLoopStart ( )

Returns the loop start time of the clip in beat time.

Returns
the beat time object that represents the clips loop start time.
Since
API version 1
SettableBeatTimeValue getPlayStart ( )

Returns the start of the clip in beat time.

Returns
the beat time object that represents the clips start time.
Since
API version 1
SettableBeatTimeValue getPlayStop ( )

Returns the length of the clip in beat time.

Returns
the beat time object that represents the duration of the clip.
Since
API version 1
SettableBooleanValue getShuffle ( )

Returns shuffle settings of the clip.

Returns
the value object that represents the clips shuffle setting.
Since
API version 1
Track getTrack ( )

Gets the track that contains the clip.

Returns
a track object that represents the track which contains the clip.
Since
API version 1
SettableBooleanValue isLoopEnabled ( )

Returns an object that provides access to the loop enabled state of the clip.

Returns
a boolean value object.
Since
API version 1
IntegerValue playingStep ( )

Value that reports note grid cells as they get played by the sequencer.

Since
API version 2
void quantize ( double  amount)

Quantizes the start time of all notes in the clip according to the given amount. The note lengths remain the same as before.

Parameters
amounta factor between 0 and 1 that allows to morph between the original note start and the quantized note start.
Since
API version 1
void scrollKeysPageDown ( )

Scrolls the note grid keys one page down. For example if the note grid is configured to show 12 keys and is currently showing keys [36..47], calling this method would scroll the note grid to key range [48..59].

Since
API version 1
void scrollKeysPageUp ( )

Scrolls the note grid keys one page up. For example if the note grid is configured to show 12 keys and is currently showing keys [36..47], calling this method would scroll the note grid to key range [48..59].

Since
API version 1
void scrollKeysStepDown ( )

Scrolls the note grid keys one key down. For example if the note grid is configured to show 12 keys and is currently showing keys [36..47], calling this method would scroll the note grid to key range [35..46].

Since
API version 1
void scrollKeysStepUp ( )

Scrolls the note grid keys one key up. For example if the note grid is configured to show 12 keys and is currently showing keys [36..47], calling this method would scroll the note grid to key range [37..48].

Since
API version 1
void scrollStepsPageBackwards ( )

Scrolls the note grid steps one page backwards. For example if the note grid is configured to show 16 steps and is currently showing keys [16..31], calling this method would scroll the note grid to key range [0..16].

Since
API version 1
void scrollStepsPageForward ( )

Scrolls the note grid steps one page forward. For example if the note grid is configured to show 16 steps and is currently showing keys [0..15], calling this method would scroll the note grid to key range [16..31].

Since
API version 1
void scrollStepsStepBackwards ( )

Scrolls the note grid steps one step backwards. For example if the note grid is configured to show 16 steps and is currently showing keys [1..16], calling this method would scroll the note grid to key range [0..15].

Since
API version 1
void scrollStepsStepForward ( )

Scrolls the note grid steps one step forward. For example if the note grid is configured to show 16 steps and is currently showing keys [0..15], calling this method would scroll the note grid to key range [1..16].

Since
API version 1
void scrollToKey ( int  key)

Scroll the note grid so that the given key becomes visible.

Parameters
keythe key that should become visible
Since
API version 1
void scrollToStep ( int  step)

Scroll the note grid so that the given step becomes visible.

Parameters
stepthe step that should become visible
Since
API version 1
void selectStepContents ( int  x,
int  y,
boolean  clearCurrentSelection 
)

Selects the note in the grid cell specified by the given x and y arguments, in case there actually is a note at the given x-y-coordinates.

Parameters
xthe x position within the note grid, defining the step/time of the target note
ythe y position within the note grid, defining the key of the target note
clearCurrentSelectiontrue if the existing selection should be cleared, {} if the note should be added to the current selection.
Since
API version 1
void setName ( String  name)

Updates the name of the clip.

Parameters
namethe new clip name
Since
API version 1
void setStep ( int  x,
int  y,
int  insertVelocity,
double  insertDuration 
)

Creates a note in the grid cell specified by the given x and y arguments. Existing notes are overwritten.

Parameters
xthe x position within the note grid, defining the step/time of the new note
ythe y position within the note grid, defining the key of the new note
insertVelocitythe velocity of the new note
insertDurationthe duration of the new note
Since
API version 1
void setStepSize ( double  lengthInBeatTime)

Sets the beat time duration that is represented by one note grid step.

Parameters
lengthInBeatTimethe length of one note grid step in beat time.
Since
API version 1
void toggleStep ( int  x,
int  y,
int  insertVelocity 
)

Toggles the existence of a note in the note grid cell specified by the given x and y arguments.

Parameters
xthe x position within the note grid, defining the step/time of the target note
ythe y position within the note grid, defining the key of the target note
insertVelocitythe velocity of the target note in case a new note gets inserted
Since
API version 1
void transpose ( int  semitones)

Transposes all notes in the clip by the given number of semitones.

Parameters
semitonesthe amount of semitones to transpose, can be a positive or negative integer value.
Since
API version 1

The documentation for this interface was generated from the following file: