tactu5
Class Cluster

java.lang.Object
  extended by tactu5.Cluster
All Implemented Interfaces:
Cloneable, T5Containers

public class Cluster
extends Object
implements Cloneable, T5Containers

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

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

Constructor Summary
Cluster()
           
Cluster(Note[] inseq)
           
 
Method Summary
 void addNote(Note inote)
          Add a note to the cluster.
 Object clone()
           
 int getClusterNumber()
          Get the elements number of the cluster.
 int getContainerNum()
           
 float getDuration()
          Get cluster duration in milliseconds.
 Note getNote(int n)
          Return a Note, an int parameter defines its position.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cluster

public Cluster()

Cluster

public Cluster(Note[] inseq)
Method Detail

clone

public Object clone()
Overrides:
clone in class Object

addNote

public void addNote(Note inote)
Add a note to the cluster.

Specified by:
addNote in interface T5Containers

getClusterNumber

public int getClusterNumber()
Get the elements number of the cluster.


getContainerNum

public int getContainerNum()
Specified by:
getContainerNum in interface T5Containers

getNote

public Note getNote(int n)
Return a Note, an int parameter defines its position.

Specified by:
getNote in interface T5Containers
Returns:
Note

getDuration

public float getDuration()
Get cluster duration in milliseconds.

Returns:
float


Processing library tactu5 by Alessandro Capozzo. (C) 2012