tactu5
Class ClusterSequence

java.lang.Object
  extended by tactu5.ClusterSequence
Direct Known Subclasses:
InternalSequence

public class ClusterSequence
extends java.lang.Object

ClusterSequence class allows to create chord sequences with Tactu5. It's possible to pass an array of Cluster datatype to the constructor or to add Cluster objects afterwards. This class automatically clones the Cluster objects passed.

Author:
Alessandro Capozzo - www.abstract-codex.net - summer - autumn 2007

Constructor Summary
ClusterSequence()
           
ClusterSequence(Cluster[] inseq)
           
 
Method Summary
 void addCluster(Cluster inote)
          Add a Cluster to the sequence array
 void addCluster(Cluster inote, int pos)
           
 void addToCluster(Cluster newC, int idC)
          Add a Cluster to an existing cluster
 int getClusterNumber()
          Return the number of all cluster inside the sequence
 float getTimeAtStep(int n)
          Return the the time in millisecond at the specified event.
 float getTotalTime()
          Return the sequence time length
 void retrogradation()
          Retrogradation of the sequence
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterSequence

public ClusterSequence()

ClusterSequence

public ClusterSequence(Cluster[] inseq)
Method Detail

addCluster

public void addCluster(Cluster inote)
Add a Cluster to the sequence array

Parameters:
inote - Cluster datatype

addCluster

public void addCluster(Cluster inote,
                       int pos)

addToCluster

public void addToCluster(Cluster newC,
                         int idC)
Add a Cluster to an existing cluster

Parameters:
newC - Cluster datatype
idC - int index of Cluster

getTimeAtStep

public float getTimeAtStep(int n)
Return the the time in millisecond at the specified event.

Parameters:
n -
Returns:
float datatype, .

getTotalTime

public float getTotalTime()
Return the sequence time length

Returns:
float

getClusterNumber

public int getClusterNumber()
Return the number of all cluster inside the sequence

Returns:

retrogradation

public void retrogradation()
Retrogradation of the sequence