|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmusiccreator.Beat
public class Beat
Implements the Beat class. A beat is a unit of rhythm containing a length (in 8th notes) and a name.
| Constructor Summary | |
|---|---|
Beat()
Creates a new instance of Beat with a default length of one 8th note and unemphasized. |
|
Beat(int l,
boolean b)
Creates a new instance of Beat with a set length. |
|
| Method Summary | |
|---|---|
int |
getLength()
Get the musical length of the Beat in 8th notes. |
boolean |
getVelocity()
Get velocity of beat. |
void |
setVelocity(boolean v)
Set the velocity of the beat. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Beat()
public Beat(int l,
boolean b)
l - length of beat in 8th notes.b - velocity of beat| Method Detail |
|---|
public final int getLength()
public final boolean getVelocity()
public void setVelocity(boolean v)
v - True=beat is emphasized, false=beat not emphasized
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||