Previous Next Package
Class MIDICompose.Note
java.lang.Object
|
+----MIDICompose.MIDIObject
|
+----MIDICompose.Note
- public class Note
- extends MIDIObject
- implements Channelable, Lengthable, Pitchable
-
Note(int, int)
- Creates new Note with length and pitch.
-
Note(int, int, int)
- Creates new Note with length, pitch and velocity.
-
Note(int, int, int, int, int, int)
- Creates new Note with deltaTime, channel, length, pitch velocity and offVelocity.
All methods from interfaces are implemented, but not listed here!
-
velocity()
- Returns current velocity.
-
offVelocity()
- Returns current offVelocity.
-
setVelocity(int)
- Sets velocity.
-
setOffVelocity(int)
- Sets offVelocity.
Note
public Note(int length,
int pitch)
- Creates a new Note with MEDIUM velocity.
- Parameters:
- length - any int (>= 0).
- pitch - any int between 0 and 127.
Note
public Note(int length,
int pitch,
int velocity)
- Creates a new Note.
- Parameters:
- length - any int (>= 0).
- pitch - any int between 0 and 127.
- velocity - any int between 0 and 127.
Note
public Note(int deltaTime,
int channel,
int length,
int pitch,
int velocity,
int offVelocity)
- Creates a new Note.
- Parameters:
- deltaTime - any int (>= 0).
- channel - any int between 0 and 15 (CHAN_1...CHAN_16).
- length - any int (>= 0).
- pitch - any int between 0 and 127.
- velocity - any int between 0 and 127.
- offVelocity - any int between 0 and 127.
velocity
public int velocity()
- Returns the current velocity.
- Returns:
- an int between 0 and 127.
setVelocity
public void setVelocity(int velocity)
- Sets velocity.
- Parameters:
- velocity - any int between 0 and 127.
offVelocity
public int offVelocity()
- Returns the current offVelocity (velocity of NoteOff).
- Returns:
- an int between 0 and 127.
setOffVelocity
public void setOffVelocity(int offVelocity)
- Sets offVelocity (velocity of NoteOff).
- Parameters:
- offVelocity - any int between 0 and 127.
Previous Next Package