Class NoteTrackEnumerator

java.lang.Object
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

    Fields
    Modifier and Type Field Description
    static java.lang.String copyright  
  • Constructor Summary

    Constructors
    Constructor Description
    NoteTrackEnumerator​(Score score, Note firstNote, Note lastNote)  
  • Method Summary

    Modifier and Type Method Description
    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

    Methods inherited from interface java.util.Enumeration

    asIterator
  • Field Details

  • Constructor Details

    • NoteTrackEnumerator

      public NoteTrackEnumerator​(Score score, Note firstNote, Note lastNote)
  • Method Details

    • 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