jcaas.midi
Class GeneratedScore

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by jcaas.midi.Score
                  extended by jcaas.midi.GeneratedScore
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess

public class GeneratedScore
extends Score

Version:
created Apr 18, 2005 last modified Apr 18, 2005
Author:
Conrad M. Hutcheson
See Also:
Serialized Form

Constructor Summary
GeneratedScore(GeneratedStaff[] s)
          Standard Constructor
 
Method Summary
 boolean changeStaff(int i, GeneratedStaff s)
          A method to replace one of the staves in this score
 NoteVector[] getNextNote()
          A method to return the staves in this score
 void newRandom()
          A method to synchronize the random number generation for all staves.
 
Methods inherited from class jcaas.midi.Score
add, add, addAll, addAll, changeStaff, getInfo, getNumStaffs, getProperty, getStaff, passMessage
 
Methods inherited from class java.util.ArrayList
clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

GeneratedScore

public GeneratedScore(GeneratedStaff[] s)
Standard Constructor

Parameters:
s - the staves this score represents
Method Detail

getNextNote

public NoteVector[] getNextNote()
A method to return the staves in this score

Overrides:
getNextNote in class Score
Returns:
the array of NoteVectors to be played next.

changeStaff

public boolean changeStaff(int i,
                           GeneratedStaff s)
A method to replace one of the staves in this score

Parameters:
i -
s -
Returns:

newRandom

public void newRandom()
A method to synchronize the random number generation for all staves.