|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.softsynth.midifile.MIDIFileEvent
public class MIDIFileEvent
Contains information for an event found in a MIDIFile
| Field Summary | |
|---|---|
int |
command
|
int |
data1
|
int |
data2
|
| Constructor Summary | |
|---|---|
MIDIFileEvent(int ticks,
int command,
int data1,
int data2)
Create an event to store a basic MIDI Message |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones contents of event. |
int |
getChannel()
Returns (command&0x0F)+1. |
int |
getCommand()
Returns entire command byte, eg. |
double |
getSeconds()
|
int |
getTicks()
Returns time in ticks. |
void |
setSeconds(double seconds)
Set time in seconds. |
void |
setTicks(int ticks)
Set time in ticks. |
java.lang.String |
toString()
|
void |
write(MIDIFileOutput mfout)
Write a MIDIFileEvent to a MIDIFile on disk. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int command
public int data1
public int data2
| Constructor Detail |
|---|
public MIDIFileEvent(int ticks,
int command,
int data1,
int data2)
ticks - MIDIFile time-stampcommand - MIDI Command, eg. NOTE_ON.data1 - First data byte of message.data2 - Second optional data byte of message.| Method Detail |
|---|
public void setTicks(int ticks)
public int getTicks()
public void setSeconds(double seconds)
public double getSeconds()
public int getCommand()
public int getChannel()
public void write(MIDIFileOutput mfout)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||