|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object c11files.calgorythmic.midi.Beat
public class Beat
This object collects all the MIDI events that must be sent on a particular beat.
Constructor Summary | |
---|---|
Beat()
This constructor creates a beat object with an empty MIDI event list. |
Method Summary | |
---|---|
void |
addEvent(Event event)
This routine adds an event to this beat |
void |
addEvents(java.util.List<Event> events)
This routine adds a list of events to the current beat. |
java.util.List<Event> |
getEvents()
|
void |
send(MidiPlayer midi,
int channel)
This routine sends all the MIDI events for the this beat to the given MIDI device. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Beat()
Method Detail |
---|
public void addEvent(Event event)
event
- the event to be addedpublic void addEvents(java.util.List<Event> events)
events
- the list of event objectspublic java.util.List<Event> getEvents()
public void send(MidiPlayer midi, int channel)
midi
- the given MIDI devicechannel
- the MIDI channel on which to send them
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |