public final class NoteOff extends java.lang.Object implements VoiceEvt, java.lang.Cloneable
Constructor and Description |
---|
NoteOff()
A public constractor used to create default (empty) note off
events.
|
NoteOff(short pitch,
short velocity,
short midiChannel,
int time)
A public constructor used to create note off events containing
pitch, velocity, MIDI channel and time information.
|
Modifier and Type | Method and Description |
---|---|
Event |
copy()
Makes a copy of an event
|
short |
getID()
Retrieve an events id
|
short |
getMidiChannel()
Get a voice events MIDI channel
|
short |
getPitch()
Returns a note off events pitch value
|
int |
getTime()
Retrieve an events time
|
short |
getVelocity()
Returns a note off events velocity value
|
void |
print()
Print this events data in a System.out.println format
|
int |
read(java.io.DataInputStream dis)
read in event data from disk
|
void |
setMidiChannel(short midiChannel)
Set a voice events MIDI channel
|
void |
setPitch(short pitch)
Sets a note off events pitch value
|
void |
setTime(int time)
Set an events time
|
void |
setVelocity(short velocity)
Sets a note off events velocity value
|
int |
write(java.io.DataOutputStream dos)
write out event data to disk
|
public NoteOff()
public NoteOff(short pitch, short velocity, short midiChannel, int time)
public short getPitch()
public void setPitch(short pitch)
public short getVelocity()
public void setVelocity(short velocity)
public short getMidiChannel()
VoiceEvt
getMidiChannel
in interface VoiceEvt
public void setMidiChannel(short midiChannel)
VoiceEvt
setMidiChannel
in interface VoiceEvt
public int getTime()
Event
public void setTime(int time)
Event
public short getID()
Event
public Event copy() throws java.lang.CloneNotSupportedException
Event
public int write(java.io.DataOutputStream dos) throws java.io.IOException
Event
public int read(java.io.DataInputStream dis) throws java.io.IOException
Event