|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjm.midi.event.CChange
Description: The CChange event is one of a set of events whose parent class is VoiceEvt. In total these classes cover all voice event types found in most MIDI file formats. These classes will usually be added to a linked list as type VoiceEvt. (see class VoiceEvt for more information)
| Constructor Summary | |
CChange()
A public constructor used to create default control change events |
|
CChange(short controllerNum,
short value,
short midiChannel,
int time)
A public constructor used create control change events containing contoller number, value and time information. |
|
| Method Summary | |
Event |
copy()
Makes a copy of an event |
short |
getControllerNum()
Returns a crontrol change events controller number |
short |
getID()
Retrieve an events id |
short |
getMidiChannel()
Get a voice events MIDI channel |
int |
getTime()
Retrieve an events time |
short |
getValue()
Returns a control change events opperation 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 |
setControllerNum(short controllerNum)
Sets a control change events controllerNum |
void |
setMidiChannel(short midiChannel)
Set a voice events MIDI channel |
void |
setTime(int time)
Set an events time |
void |
setValue(short value)
Sets a control change events opperation value |
int |
write(java.io.DataOutputStream dos)
write out event data to disk |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CChange()
public CChange(short controllerNum,
short value,
short midiChannel,
int time)
| Method Detail |
public short getControllerNum()
public void setControllerNum(short controllerNum)
public short getValue()
public void setValue(short value)
public short getMidiChannel()
VoiceEvt
getMidiChannel in interface VoiceEvtpublic void setMidiChannel(short midiChannel)
VoiceEvt
setMidiChannel in interface VoiceEvtpublic int getTime()
Event
getTime in interface Eventpublic void setTime(int time)
Event
setTime in interface Eventpublic short getID()
Event
getID in interface Event
public int write(java.io.DataOutputStream dos)
throws java.io.IOException
Event
write in interface Eventjava.io.IOException
public int read(java.io.DataInputStream dis)
throws java.io.IOException
Event
read in interface Eventjava.io.IOException
public Event copy()
throws java.lang.CloneNotSupportedException
Event
copy in interface Eventjava.lang.CloneNotSupportedExceptionpublic void print()
Event
print in interface Event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||