public final class PChange extends java.lang.Object implements VoiceEvt, java.lang.Cloneable
Constructor and Description |
---|
PChange()
Create a program change event with no initial values
|
PChange(short value,
short midiChannel,
int time)
Create a program change event with a program change value, midiChannel and time.
|
Modifier and Type | Method and Description |
---|---|
Event |
copy()
Makes a copy of an event
|
short |
getID()
Retrieve an events id
|
short |
getMidiChannel()
Returns a program change events MIDI channel
|
int |
getTime()
Returns a program change events time
|
short |
getValue()
Returns a program change events program change 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)
Sets a program change events MIDI channel
|
void |
setTime(int time)
Sets a program change events time
|
void |
setValue(short value)
Sets a program change events program change value
|
java.lang.String |
toString() |
int |
write(java.io.DataOutputStream dos)
write out event data to disk
|
public PChange()
public PChange(short value, short midiChannel, int time)
public short getValue()
public void setValue(short 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
public void print()
Event
public java.lang.String toString()
toString
in class java.lang.Object