abc.notation
Class MultiPartsDefinition
java.lang.Object
abc.notation.RepeatedPartAbstract
abc.notation.MultiPartsDefinition
- public class MultiPartsDefinition
- extends RepeatedPartAbstract
This class describes the way a multipart score is defined.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiPartsDefinition
public MultiPartsDefinition()
- Creates a new multi part definition.
addPart
public void addPart(RepeatedPartAbstract p)
- Adds a new part to this multi part.
- Parameters:
p
- The part that has to be added to the multi part. This part can
be a simple Part or another MultiPart (composite
definition).
toPartsArray
public Part[] toPartsArray()
- Returns this multipart as an array of singles parts. The playing of the
multi part would sound the same as the playing of the array of parts.
- Specified by:
toPartsArray
in class RepeatedPartAbstract
- Returns:
- An array of singles parts that would sound the same as the
playing of this multipart.
getPartsAsRepeatedOnceVector
public java.util.Vector getPartsAsRepeatedOnceVector()