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.
-
MidiNoteOn(int)
- Constructor
-
MidiNoteOn(int, long, int, int)
- Constructor
-
clone()
- Return a new copy.
-
equals(MidiMsg)
- Return true if this object equals another.
-
getBytesOff()
- Get the array of bytes representing the end of the message.
-
getBytesOn()
- Get the array of bytes representing the start of the message.
-
getChannel()
- Get the channel (1 to 16).
-
getDuration()
- Get the duration (in clicks).
-
getPitch()
- Get the pitch (0 to 127).
-
getVelocity()
- Get the velocity (0-127)
-
setChannel(int)
- Set the channel (1 to 16).
-
setDuration(long)
- Set the duration (in clicks).
-
setPitch(int)
- Set the pitch (0 to 127).
-
setVelocity(int)
- Set the velocity (0-127)
-
toString()
- Return a human-readable version.
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)
MidiNoteOn
public MidiNoteOn(int p)
- Constructor
- Parameters:
- p - pitch (0 to 127)
clone
public Object clone()
- Return a new copy.
- Overrides:
- clone in class MidiMsg
equals
public boolean equals(MidiMsg m)
- Return true if this object equals another.
- Overrides:
- equals in class MidiMsg
getPitch
public int getPitch()
- Get the pitch (0 to 127).
- Overrides:
- getPitch in class MidiMsg
setPitch
public void setPitch(int p)
- Set the pitch (0 to 127).
- Overrides:
- setPitch in class MidiMsg
getDuration
public long getDuration()
- Get the duration (in clicks).
- Overrides:
- getDuration in class MidiMsg
setDuration
public void setDuration(long d)
- Set the duration (in clicks).
- Overrides:
- setDuration in class MidiMsg
getChannel
public int getChannel()
- Get the channel (1 to 16).
- Overrides:
- getChannel in class MidiMsg
setChannel
public void setChannel(int c)
- Set the channel (1 to 16).
- Overrides:
- setChannel in class MidiMsg
getVelocity
public int getVelocity()
- Get the velocity (0-127)
- Overrides:
- getVelocity in class MidiMsg
setVelocity
public void setVelocity(int v)
- Set the velocity (0-127)
- Overrides:
- setVelocity in class MidiMsg
getBytesOn
public byte[] getBytesOn()
- Get the array of bytes representing the start of the message.
- Overrides:
- getBytesOn in class MidiMsg
getBytesOff
public byte[] getBytesOff()
- Get the array of bytes representing the end of the message.
- Overrides:
- getBytesOff in class MidiMsg
toString
public String toString()
- Return a human-readable version.
- Overrides:
- toString in class MidiMsg
All Packages Class Hierarchy This Package Previous Next Index