Class NoteBlockEnumerator

java.lang.Object
com.softsynth.jmsl.score.NoteBlockEnumerator
All Implemented Interfaces:
java.util.Enumeration

public class NoteBlockEnumerator
extends java.lang.Object
implements java.util.Enumeration
Enumerate through all Notes in a rectangular selection of a Score. First note must come earlier in time than last note. First and last note do not have to belong to the same staff. First note's time location in the track marks the delimiter for other first notes of other Tracks and Staffs. Last note's time location in its track marks the limit of other last notes in other Tracks and Staffs. 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
    NoteBlockEnumerator​(Score score, Note firstNote, Note lastNote, boolean maximizeEndTimeLimit)  
  • 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

    • NoteBlockEnumerator

      public NoteBlockEnumerator​(Score score, Note firstNote, Note lastNote, boolean maximizeEndTimeLimit)
  • 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