public final class PWheel extends java.lang.Object implements VoiceEvt, java.lang.Cloneable
Constructor and Description |
---|
PWheel()
Public constructor for creating a default (empty) pitch wheel event
|
PWheel(int value,
short midiChannel,
int time)
Public constructor for creating a pitch wheel event with pitch wheel value
midi channel and time
|
Modifier and Type | Method and Description |
---|---|
Event |
copy()
Makes a copy of an event
|
short |
getID()
Retrieve an events id
|
short |
getMidiChannel()
Return pitch wheel events MIDI channel
|
int |
getTime()
Return pitch wheel events time
|
int |
getValue()
Return pitch wheel events pitch wheel 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 pitch wheel events MIDI channel
|
void |
setTime(int time)
Set pitch wheel events time
|
void |
setValue(int value)
Set pitch wheel events pitch wheel value
|
int |
write(java.io.DataOutputStream dos)
write out event data to disk
|
public PWheel()
public PWheel(int value, short midiChannel, int time)
public int getValue()
public void setValue(int value)
public short getMidiChannel()
getMidiChannel
in interface VoiceEvt
public void setMidiChannel(short midiChannel)
setMidiChannel
in interface VoiceEvt
public int getTime()
public void setTime(int time)
public short getID()
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
public Event copy() throws java.lang.CloneNotSupportedException
Event