|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectabc.notation.Tempo
The tempo class enables you to define tempo values from a reference note length.
Constructor Summary | |
Tempo(int notesNbPerMinute)
Creates a tempo object with the specified tempo value and quarter as length reference. |
|
Tempo(short referenceLength,
int value)
Creates a tempo object with the specified tempo value and the specified length reference. |
Method Summary | |
int |
getNotesNumberPerMinute()
Returns the number of note per minutes considering that those notes' length is the reference length. |
int |
getNotesNumberPerMinute(short refLength)
Returns the tempo for the given length as reference. |
short |
getReference()
Returns the reference length used to express this tempo. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Tempo(int notesNbPerMinute)
notesNbPerMinute
- The number of quarter notes per minutes.public Tempo(short referenceLength, int value)
referenceLength
- The reference length.value
- The number of reference lengths per minutes.Method Detail |
public short getReference()
public int getNotesNumberPerMinute()
public int getNotesNumberPerMinute(short refLength)
refLength
- The note length in which this tempo should be expressed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |