toys
Class RhythmEvent
java.lang.Object
java.util.EventObject
toys.RhythmEvent
- All Implemented Interfaces:
- Serializable
public class RhythmEvent
- extends EventObject
A rhythm event that carries a time stamp holding the difference to the
last rhythm event.
- See Also:
- Serialized Form
|
Field Summary |
private long |
duration
The beat interval. |
|
Constructor Summary |
RhythmEvent(Object src,
long dt)
Constructs a new rhythm event that hold the source and the beat
interval. |
|
Method Summary |
long |
getDuration()
Returns the beat period. |
duration
private long duration
- The beat interval.
RhythmEvent
public RhythmEvent(Object src,
long dt)
- Constructs a new rhythm event that hold the source and the beat
interval.
getDuration
public long getDuration()
- Returns the beat period.