Previous  Next          Package

Class MIDICompose.Note

java.lang.Object
   |
   +----MIDICompose.MIDIObject
           |
           +----MIDICompose.Note

public class Note
extends MIDIObject
implements Channelable, Lengthable, Pitchable

Constructor Index

 o Note(int, int)
Creates new Note with length and pitch.
 o Note(int, int, int)
Creates new Note with length, pitch and velocity.
 o Note(int, int, int, int, int, int)
Creates new Note with deltaTime, channel, length, pitch velocity and offVelocity.

Method Index

All methods from interfaces are implemented, but not listed here!
 o velocity()
Returns current velocity.
 o offVelocity()
Returns current offVelocity.
 o setVelocity(int)
Sets velocity.
 o setOffVelocity(int)
Sets offVelocity.

Constructors

 o 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.
 o 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.
 o 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.

Methods

 o velocity
 public int velocity()
Returns the current velocity.

Returns:
an int between 0 and 127.
 o setVelocity
 public void setVelocity(int velocity)
Sets velocity.

Parameters:
velocity - any int between 0 and 127.
 o offVelocity
 public int offVelocity()
Returns the current offVelocity (velocity of NoteOff).

Returns:
an int between 0 and 127.
 o setOffVelocity
 public void setOffVelocity(int offVelocity)
Sets offVelocity (velocity of NoteOff).

Parameters:
offVelocity - any int between 0 and 127.

 Previous  Next          Package