Control Surface API  3.2
NoteStep Interface Reference

Classes

enum  State
 

Public Member Functions

int x ()
 
int y ()
 
int channel ()
 
State state ()
 
double velocity ()
 
void setVelocity (double velocity)
 
double releaseVelocity ()
 
void setReleaseVelocity (double velocity)
 
double duration ()
 
void setDuration (double duration)
 
double pan ()
 
void setPan (double pan)
 
double timbre ()
 
void setTimbre (double timbre)
 
double pressure ()
 
void setPressure (double pressure)
 
double gain ()
 
void setGain (double gain)
 
double transpose ()
 
void setTranspose (double transpose)
 
boolean isIsSelected ()
 

Detailed Description

Object that describes the content of a step at a given position: x for the time, and y for the key.

Since
API version 10

Definition at line 10 of file NoteStep.java.

Member Function Documentation

int channel ( )
Returns
the note's channel, in the range 0..15.
Since
API version 10
double duration ( )
Returns
the duration of the step in beats
Since
API version 10
double gain ( )
Returns
the gain of the step, in the range 0..1
Since
API version 10
boolean isIsSelected ( )
Returns
true if a note exists and is selected
Since
API version 10
double pan ( )
Returns
the pan of the step in the range -1..1
Since
API version 10
double pressure ( )
Returns
the pressure of the step, in the range 0..1
Since
API version 10
double releaseVelocity ( )
Returns
the release velocity of the step, in the range 0..1
Since
API version 10
void setDuration ( double  duration)

If there is a note started at this position, it will update the duration of the note.

Parameters
durationin beats
Since
API version 10
void setGain ( double  gain)

If there is a note started at this position, it will update the gain of the note.

Parameters
gainin the range 0..1, a value of 0.5 results in a gain of 0dB.
Since
API version 10
void setPan ( double  pan)

If there is a note started at this position, it will update the panning of the note.

Parameters
pan-1 for left, +1 for right
Since
API version 10
void setPressure ( double  pressure)

If there is a note started at this position, it will update the pressure of the note.

Parameters
pressurefrom 0 to +1
Since
API version 10
void setReleaseVelocity ( double  velocity)

If there is a note started at this position, it will update the release velocity of the note.

Parameters
velocitybetween 0 and 1
Since
API version 10
void setTimbre ( double  timbre)

If there is a note started at this position, it will update the timbre of the note.

Parameters
timbrefrom -1 to +1
Since
API version 10
void setTranspose ( double  transpose)

If there is a note started at this position, it will update the pitch offset of the note.

Parameters
transposein semitones, from -24 to +24
Since
API version 10
void setVelocity ( double  velocity)

If there is a note started at this position, it will update the velocity of the note.

Parameters
velocitybetween 0 and 1 API version 10
State state ( )
Returns
the state of the step, it lets you know if a note starts.
Since
API version 10
double timbre ( )
Returns
the timbre of the step, in the range -1..1
Since
API version 10
double transpose ( )
Returns
the transpose of the step, in semitones
Since
API version 10
double velocity ( )
Returns
the velocity of the step, in the range 0..1
Since
API version 10
int x ( )
Returns
the position of the step (time)
Since
API version 10
int y ( )
Returns
the position of the step (key)
Since
API version 10

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