All Packages Class Hierarchy This Package Previous Next Index
Class com.nosuch.midi.MidiNoteOff
java.lang.Object
|
+----com.nosuch.midi.MidiMsg
|
+----com.nosuch.midi.MidiNoteOff
- public class MidiNoteOff
- extends MidiMsg
- implements Cloneable, MidiNoteable
A MidiNoteOff is a MidiMsg that is a single isolated note-off message.
-
MidiNoteOff(int)
- Constructor
-
MidiNoteOff(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.
MidiNoteOff
public MidiNoteOff(int p,
long t,
int c,
int v)
- Constructor
- Parameters:
- t - time (in clicks)
- p - pitch (0-127)
- c - channel (1-16)
- v - velocity (0-127)
MidiNoteOff
public MidiNoteOff(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