Control Surface API  1.1.11
Clip Interface Reference

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 ()
void addCanScrollKeysUpObserver (Callable callback)
void addCanScrollKeysDownObserver (Callable callback)
void addCanScrollStepsBackwardsObserver (Callable callback)
void addCanScrollStepsForwardObserver (Callable 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 selectStepContents (int x, int y, boolean clearCurrentSelection)
void setStepSize (double lengthInBeatTime)
void addStepDataObserver (Callable callback)
void addPlayingStepObserver (Callable callback)
void setName (String name)
BooleanValue getShuffle ()
RangedValue getAccent ()
BeatTime getPlayStart ()
BeatTime getPlayStop ()
BooleanValue isLoopEnabled ()
BeatTime getLoopStart ()
BeatTime getLoopLength ()

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:
Bitwig Studio 1.0

Definition at line 14 of file Clip.java.


Member Function Documentation

void addCanScrollKeysDownObserver ( Callable  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:
Bitwig Studio 1.0
void addCanScrollKeysUpObserver ( Callable  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:
Bitwig Studio 1.0
void addCanScrollStepsBackwardsObserver ( Callable  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:
Bitwig Studio 1.0
void addCanScrollStepsForwardObserver ( Callable  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:
Bitwig Studio 1.0
void addPlayingStepObserver ( Callable  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:
Bitwig Studio 1.0
void addStepDataObserver ( Callable  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. a boolean value that indicates if the step is enabled (`true`) or disabled (`false`).
Since:
Bitwig Studio 1.0
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:
Bitwig Studio 1.0

Returns accent setting of the clip.

Returns:
the ranged value object that represents the clips accent setting.
Since:
Bitwig Studio 1.0

Returns the loop length of the clip in beat time.

Returns:
the beat time object that represents the clips loop length.
Since:
Bitwig Studio 1.1

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

Returns:
the beat time object that represents the clips loop start time.
Since:
Bitwig Studio 1.1

Returns the start of the clip in beat time.

Returns:
the beat time object that represents the clips start time.
Since:
Bitwig Studio 1.1

Returns the length of the clip in beat time.

Returns:
the beat time object that represents the duration of the clip.
Since:
Bitwig Studio 1.1

Returns shuffle settings of the clip.

Returns:
the value object that represents the clips shuffle setting.
Since:
Bitwig Studio 1.0

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

Returns:
a boolean value object.
Since:
Bitwig Studio 1.1

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:
Bitwig Studio 1.0
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:
Bitwig Studio 1.0

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:
Bitwig Studio 1.0
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:
Bitwig Studio 1.0

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:
Bitwig Studio 1.0

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:
Bitwig Studio 1.0

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:
Bitwig Studio 1.0

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:
Bitwig Studio 1.0
void scrollToKey ( int  key)

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

Parameters:
keythe key that should become visible
Since:
Bitwig Studio 1.0
void scrollToStep ( int  step)

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

Parameters:
stepthe step that should become visible
Since:
Bitwig Studio 1.0
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
clearCurrentSelection`true` if the existing selection should be cleared, {} if the note should be added to the current selection.
Since:
Bitwig Studio 1.0
void setName ( String  name)

Updates the name of the clip.

Parameters:
namethe new clip name
Since:
Bitwig Studio 1.0
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:
Bitwig Studio 1.0
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:
Bitwig Studio 1.0
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:
Bitwig Studio 1.0

List of all members.


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