All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.nosuch.midi.MidiNoteOn

java.lang.Object
   |
   +----com.nosuch.midi.MidiMsg
           |
           +----com.nosuch.midi.MidiNoteOn

public class MidiNoteOn
extends MidiMsg
implements Cloneable, MidiNoteable
A MidiNoteOn is a MidiMsg that is a single isolated note-on message.


Constructor Index

 o MidiNoteOn(int)
Constructor
 o MidiNoteOn(int, long, int, int)
Constructor

Method Index

 o clone()
Return a new copy.
 o equals(MidiMsg)
Return true if this object equals another.
 o getBytesOff()
Get the array of bytes representing the end of the message.
 o getBytesOn()
Get the array of bytes representing the start of the message.
 o getChannel()
Get the channel (1 to 16).
 o getDuration()
Get the duration (in clicks).
 o getPitch()
Get the pitch (0 to 127).
 o getVelocity()
Get the velocity (0-127)
 o setChannel(int)
Set the channel (1 to 16).
 o setDuration(long)
Set the duration (in clicks).
 o setPitch(int)
Set the pitch (0 to 127).
 o setVelocity(int)
Set the velocity (0-127)
 o toString()
Return a human-readable version.

Constructors

 o MidiNoteOn
 public MidiNoteOn(int p,
                   long t,
                   int c,
                   int v)
Constructor

Parameters:
t - time (in clicks)
p - pitch (0 to 127)
c - channel (1 to 16)
v - velocity (0 to 127)
 o MidiNoteOn
 public MidiNoteOn(int p)
Constructor

Parameters:
p - pitch (0 to 127)

Methods

 o clone
 public Object clone()
Return a new copy.

Overrides:
clone in class MidiMsg
 o equals
 public boolean equals(MidiMsg m)
Return true if this object equals another.

Overrides:
equals in class MidiMsg
 o getPitch
 public int getPitch()
Get the pitch (0 to 127).

Overrides:
getPitch in class MidiMsg
 o setPitch
 public void setPitch(int p)
Set the pitch (0 to 127).

Overrides:
setPitch in class MidiMsg
 o getDuration
 public long getDuration()
Get the duration (in clicks).

Overrides:
getDuration in class MidiMsg
 o setDuration
 public void setDuration(long d)
Set the duration (in clicks).

Overrides:
setDuration in class MidiMsg
 o getChannel
 public int getChannel()
Get the channel (1 to 16).

Overrides:
getChannel in class MidiMsg
 o setChannel
 public void setChannel(int c)
Set the channel (1 to 16).

Overrides:
setChannel in class MidiMsg
 o getVelocity
 public int getVelocity()
Get the velocity (0-127)

Overrides:
getVelocity in class MidiMsg
 o setVelocity
 public void setVelocity(int v)
Set the velocity (0-127)

Overrides:
setVelocity in class MidiMsg
 o getBytesOn
 public byte[] getBytesOn()
Get the array of bytes representing the start of the message.

Overrides:
getBytesOn in class MidiMsg
 o getBytesOff
 public byte[] getBytesOff()
Get the array of bytes representing the end of the message.

Overrides:
getBytesOff in class MidiMsg
 o toString
 public String toString()
Return a human-readable version.

Overrides:
toString in class MidiMsg

All Packages  Class Hierarchy  This Package  Previous  Next  Index