|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dguitar.players.sound.EventStream
An EventStream is the ordered list of PerformanceEvents on a specific virtual track, representing the behavior of a single string through an entire performance.
Field Summary | |
(package private) PerformanceEvent |
first
The first event in this event stream. |
(package private) PerformanceEvent |
last
The last event in this event stream. |
(package private) int |
lastEventEndOffset
The last event parsed. |
(package private) int |
lastEventLocation
The location of the last event. |
(package private) SongEvent |
lastNoteOnEvent
The last note on event parsed. |
(package private) SongTrack |
track
The track to which this stream of events belongs. |
(package private) int |
virtualTrackIndex
The virtual track within track that produced this stream
of events |
Constructor Summary | |
EventStream(SongTrack songTrack,
int v)
|
Method Summary | |
void |
addEvents(java.util.List events,
int location)
Add a list of song events as PerformanceEvents to this event stream. |
void |
close()
|
private void |
closeOpenNote()
|
private void |
connect(PerformanceEvent perfEvent)
|
PerformanceEvent |
getFirst()
|
SongTrack |
getTrack()
|
int |
getVirtualTrackIndex()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
SongTrack track
int virtualTrackIndex
track
that produced this stream
of events
PerformanceEvent first
null
since tracks should begin with an initialization
event.
PerformanceEvent last
int lastEventEndOffset
int lastEventLocation
SongEvent lastNoteOnEvent
Constructor Detail |
public EventStream(SongTrack songTrack, int v)
songTrack
- v
- Method Detail |
public void addEvents(java.util.List events, int location)
events
- the list of events to addlocation
- the offset to apply to these events, in resolution unitsprivate void closeOpenNote()
private void connect(PerformanceEvent perfEvent)
public PerformanceEvent getFirst()
public SongTrack getTrack()
public int getVirtualTrackIndex()
public void close()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |