abc.notation
Class RepeatedPart

java.lang.Object
  extended byabc.notation.RepeatedPartAbstract
      extended byabc.notation.RepeatedPart

public class RepeatedPart
extends RepeatedPartAbstract

A simple Part repeated several times.


Constructor Summary
RepeatedPart(Part part)
          Creates a new repeated part that will repeat the given part.
 
Method Summary
 Part[] toPartsArray()
          Returns this repeated part as an array of singles parts.
 
Methods inherited from class abc.notation.RepeatedPartAbstract
getNumberOfRepeats, setNumberOfRepeats
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepeatedPart

public RepeatedPart(Part part)
Creates a new repeated part that will repeat the given part.

Parameters:
part - A part of a tune.
Method Detail

toPartsArray

public Part[] toPartsArray()
Description copied from class: RepeatedPartAbstract
Returns this repeated part as an array of singles parts. The playing of this repeated 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 repeated part.