public final class CPres extends java.lang.Object implements VoiceEvt, java.lang.Cloneable
| Constructor and Description | 
|---|
| CPres()A public constructor for creating default (empty) channel pressure 
           events. | 
| CPres(short pressure,
     short midiChannel,
     int time)A public constructor for creating channel pressure events 
           which contain pressure, 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 | getPressure()Returns a channel pressure events pressure value | 
| int | getTime()Retrieve an events time | 
| 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 | setPressure(short pressure)Sets a channel pressure events pressure value | 
| void | setTime(int time)Set an events time | 
| int | write(java.io.DataOutputStream dos)write out event data to disk | 
public CPres()
public CPres(short pressure,
     short midiChannel,
     int time)
public short getPressure()
public void setPressure(short pressure)
public short getMidiChannel()
VoiceEvtgetMidiChannel in interface VoiceEvtpublic void setMidiChannel(short midiChannel)
VoiceEvtsetMidiChannel in interface VoiceEvtpublic int getTime()
Eventpublic void setTime(int time)
Eventpublic short getID()
Eventpublic int write(java.io.DataOutputStream dos)
          throws java.io.IOException
Eventpublic int read(java.io.DataInputStream dis)
         throws java.io.IOException
Eventpublic Event copy() throws java.lang.CloneNotSupportedException
Event