|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttactu5.Sequence
public class Sequence
Sequence class allows to create musical phrases or patterns 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.
Constructor Summary | |
---|---|
Sequence()
|
|
Sequence(Note[] inseq)
|
Method Summary | |
---|---|
void |
addNote(Note inote)
Add a note to Sequence internal array. |
java.lang.Object |
clone()
|
int |
getContainerNum()
|
float[] |
getDuration()
Return a float array with all duration values in the sequence. |
float[] |
getFrequency()
Rreturn a float array with all frequency values in the sequence. |
Note |
getNote(int index)
return a specific note of the sequence |
float[] |
getPan()
Return a float array with all pan values in the sequence. |
Note[] |
getSequence()
Return the internal array of Note objects. |
int |
getSequenceLength()
Return the number of sequence notes. |
float |
getSequenceMilliSec()
Return the sequence duration in milliseconds. |
float[] |
getSustain()
Return a float array with all sustain values in the sequence. |
float |
getTimeAtStep(int n)
Return the time in milliseconds of a specific elements of the internal array. |
float[] |
getVelocity()
Return a float array with all velocity values in the sequence. |
void |
scaleDuration(float coeficent)
This method modifies all events duration in the sequence |
void |
scaleSustain(float coeficent)
This method modifies all events duration in the sequence |
void |
setChannel(int inValue)
|
void |
setChannel(int[] inArray)
Set all the channel values of internal Note array. |
void |
setDuration(float inValue)
|
void |
setDuration(float[] inArray)
Set all the duration values of internal Note array. |
void |
setFrequency(float inValue)
|
void |
setFrequency(float[] inArray)
Set all the frequency values of internal Note array. |
void |
setPan(float inValue)
|
void |
setPan(float[] inArray)
Set all the pan values of internal Note array. |
void |
setSustain(float inValue)
|
void |
setSustain(float[] inArray)
Set all the sustain values of internal Note array. |
void |
setVelocity(float inValue)
|
void |
setVelocity(float[] inArray)
Set all the velocity values of internal Note array. |
void |
updateTime(float t)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sequence()
public Sequence(Note[] inseq)
Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public void addNote(Note inote)
addNote
in interface T5Containers
public void updateTime(float t)
public float getTimeAtStep(int n)
public Note[] getSequence()
public void setDuration(float[] inArray)
public void setDuration(float inValue)
public void setSustain(float[] inArray)
public void setSustain(float inValue)
public void setPan(float[] inArray)
public void setPan(float inValue)
public void setVelocity(float[] inArray)
public void setVelocity(float inValue)
public void setFrequency(float[] inArray)
public void setFrequency(float inValue)
public void setChannel(int[] inArray)
public void setChannel(int inValue)
public void scaleDuration(float coeficent)
coeficent
- a float valuepublic void scaleSustain(float coeficent)
coeficent
- a float valuepublic float[] getVelocity()
public float[] getPan()
public float[] getSustain()
public float[] getDuration()
public float[] getFrequency()
public int getSequenceLength()
public int getContainerNum()
getContainerNum
in interface T5Containers
public float getSequenceMilliSec()
public Note getNote(int index)
getNote
in interface T5Containers
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |