|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjcaas.midi.StaffProperty
jcaas.midi.Tempo
public class Tempo
Tempo represents the tempo, or speed of a song. The unit is beats per minute. Extends StaffProperty since it may be set/got by methods in Song.
| Constructor Summary | |
|---|---|
Tempo()
Default constructor, sets the speed to 0. |
|
Tempo(int speed)
Constructor that takes an integer holding the speed to represent. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Returns the name for this type of Staff Property |
int |
getTempo()
Returns the number of beats per minute represented by this song. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Tempo()
public Tempo(int speed)
speed - the int number of beats per minute that this tempo represents.| Method Detail |
|---|
public int getTempo()
public java.lang.String getName()
StaffProperty
getName in class StaffProperty
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||