|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttactu5.Note
public class Note
Class Note defines a single sound event.
It's possible to create a new instance of the object passing a variable numbers of parameters.
Though some parameters could seem arbitrary, because Tactu5 does not implement any sound generator,
using them in the suggested way allows to utilize properly some advanced methods.
T5Notes
,
Sequence
,
Cluster
Constructor Summary | |
---|---|
Note(float d,
boolean r)
|
|
Note(float d,
boolean r,
java.lang.String c)
|
|
Note(float f,
float d)
|
|
Note(float f,
float d,
float p)
|
|
Note(float f,
float d,
float p,
boolean r)
|
|
Note(float f,
float d,
float p,
float v,
float s,
boolean r)
|
|
Note(float f,
float d,
float p,
float v,
float s,
boolean r,
java.lang.String c,
int ch)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
int |
getChannel()
Get a channel number. |
java.lang.String |
getComment()
Get a comment. |
float |
getDuration()
Get the duration value in milliseconds. |
float |
getFrequency()
Get the the frequency value in Hz. |
float |
getPan()
Get the pan value. |
float |
getSustain()
Get the sustain value in milliseconds. |
float |
getVelocity()
Get the velocity value. |
void |
invertRest()
Invert the boolean value for identify a rest. |
boolean |
isThisARest()
Return a boolean value, true if the sound value is a rest, false if is a note. |
void |
setChannel(int ch)
Set a channel number. |
void |
setComment(java.lang.String c)
Write a comment. |
void |
setDuration(float d)
Set the duration value of an event. |
void |
setFrequency(float f)
Set the the frequency value in Hz. |
void |
setPan(float p)
Set the pan value of an event. |
void |
setSustain(float s)
Set the sustain value of an event. |
void |
setVelocity(float v)
Set the velocity value of an event. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Note(float d, boolean r)
public Note(float d, boolean r, java.lang.String c)
public Note(float f, float d)
public Note(float f, float d, float p)
public Note(float f, float d, float p, boolean r)
public Note(float f, float d, float p, float v, float s, boolean r)
public Note(float f, float d, float p, float v, float s, boolean r, java.lang.String c, int ch)
Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean isThisARest()
public void invertRest()
public float getFrequency()
public void setFrequency(float f)
public float getDuration()
public float getSustain()
public float getPan()
public float getVelocity()
public java.lang.String getComment()
public int getChannel()
public void setDuration(float d)
public void setSustain(float s)
public void setPan(float p)
public void setVelocity(float v)
public void setComment(java.lang.String c)
public void setChannel(int ch)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |