com.softsynth.jmsl.score
Class NoteTrackEnumerator

java.lang.Object
  extended by com.softsynth.jmsl.score.NoteTrackEnumerator
All Implemented Interfaces:
java.util.Enumeration

public class NoteTrackEnumerator
extends java.lang.Object
implements java.util.Enumeration

Enumerate through all Notes in a Track, crossing Measure bar into next corresponding Track, etc
Enumerating all notes that would belong to a contiguous "melody". First and Last notes must belong to same track index of same staff index. JMSL Notation Project

Author:
Nick Didkovsky , copyright 2000 Nick Didkovsky , all rights reserved

Field Summary
static java.lang.String copyright
           
 
Constructor Summary
NoteTrackEnumerator(Score score, Note firstNote, Note lastNote)
           
 
Method Summary
 boolean hasMoreElements()
          There are more elements if the last Object returned was not the last Note
 java.lang.Object nextElement()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright
See Also:
Constant Field Values
Constructor Detail

NoteTrackEnumerator

public NoteTrackEnumerator(Score score,
                           Note firstNote,
                           Note lastNote)
Method Detail

hasMoreElements

public boolean hasMoreElements()
There are more elements if the last Object returned was not the last Note

Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()
Specified by:
nextElement in interface java.util.Enumeration